<p>Patrick Georgi has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/c/coreboot/+/30317">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">util/crossgcc: patch compiler-rt to enable build with glibc 2.28<br><br>Without this change, clang won't build on recent linux distros.<br><br>Change-Id: I97d3d375962b22e124583b999080305628237fd5<br>Signed-off-by: Patrick Georgi <pgeorgi@google.com><br>---<br>A util/crossgcc/patches/compiler-rt-6.0.0.src_ustat.h.patch<br>1 file changed, 35 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/30317/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/util/crossgcc/patches/compiler-rt-6.0.0.src_ustat.h.patch b/util/crossgcc/patches/compiler-rt-6.0.0.src_ustat.h.patch</span><br><span>new file mode 100644</span><br><span>index 0000000..47bdcc8</span><br><span>--- /dev/null</span><br><span>+++ b/util/crossgcc/patches/compiler-rt-6.0.0.src_ustat.h.patch</span><br><span>@@ -0,0 +1,35 @@</span><br><span style="color: hsl(120, 100%, 40%);">+Taken from https://reviews.llvm.org/D47165?download=true</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Index: lib/sanitizer_common/sanitizer_common_syscalls.inc</span><br><span style="color: hsl(120, 100%, 40%);">+===================================================================</span><br><span style="color: hsl(120, 100%, 40%);">+--- lib/sanitizer_common/sanitizer_common_syscalls.inc</span><br><span>++++ a/lib/sanitizer_common/sanitizer_common_syscalls.inc</span><br><span style="color: hsl(120, 100%, 40%);">+@@ -923,7 +923,7 @@</span><br><span style="color: hsl(120, 100%, 40%);">+   }</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span style="color: hsl(120, 100%, 40%);">+ </span><br><span style="color: hsl(120, 100%, 40%);">+-#if !SANITIZER_ANDROID</span><br><span style="color: hsl(120, 100%, 40%);">++#if !SANITIZER_LINUX && !SANITIZER_ANDROID</span><br><span style="color: hsl(120, 100%, 40%);">+ PRE_SYSCALL(ustat)(long dev, void *ubuf) {}</span><br><span style="color: hsl(120, 100%, 40%);">+ </span><br><span style="color: hsl(120, 100%, 40%);">+ POST_SYSCALL(ustat)(long res, long dev, void *ubuf) {</span><br><span style="color: hsl(120, 100%, 40%);">+Index: lib/sanitizer_common/sanitizer_platform_limits_posix.cc</span><br><span style="color: hsl(120, 100%, 40%);">+===================================================================</span><br><span style="color: hsl(120, 100%, 40%);">+--- lib/sanitizer_common/sanitizer_platform_limits_posix.cc</span><br><span>++++ a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc</span><br><span style="color: hsl(120, 100%, 40%);">+@@ -159,7 +159,6 @@</span><br><span style="color: hsl(120, 100%, 40%);">+ # include <sys/procfs.h></span><br><span style="color: hsl(120, 100%, 40%);">+ #endif</span><br><span style="color: hsl(120, 100%, 40%);">+ #include <sys/user.h></span><br><span style="color: hsl(120, 100%, 40%);">+-#include <sys/ustat.h></span><br><span style="color: hsl(120, 100%, 40%);">+ #include <linux/cyclades.h></span><br><span style="color: hsl(120, 100%, 40%);">+ #include <linux/if_eql.h></span><br><span style="color: hsl(120, 100%, 40%);">+ #include <linux/if_plip.h></span><br><span style="color: hsl(120, 100%, 40%);">+@@ -253,7 +252,6 @@</span><br><span style="color: hsl(120, 100%, 40%);">+ #endif // SANITIZER_LINUX || SANITIZER_FREEBSD</span><br><span style="color: hsl(120, 100%, 40%);">+ </span><br><span style="color: hsl(120, 100%, 40%);">+ #if SANITIZER_LINUX && !SANITIZER_ANDROID</span><br><span style="color: hsl(120, 100%, 40%);">+-  unsigned struct_ustat_sz = sizeof(struct ustat);</span><br><span style="color: hsl(120, 100%, 40%);">+   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);</span><br><span style="color: hsl(120, 100%, 40%);">+   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);</span><br><span style="color: hsl(120, 100%, 40%);">+ #endif // SANITIZER_LINUX && !SANITIZER_ANDROID</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/c/coreboot/+/30317">change 30317</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/c/coreboot/+/30317"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I97d3d375962b22e124583b999080305628237fd5 </div>
<div style="display:none"> Gerrit-Change-Number: 30317 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Patrick Georgi <pgeorgi@google.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>