[coreboot-gerrit] Change in ...coreboot[master]: util/crossgcc: patch compiler-rt to enable build with glibc 2.28

Patrick Georgi (Code Review) gerrit at coreboot.org
Wed Dec 19 17:56:28 CET 2018


Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30317


Change subject: util/crossgcc: patch compiler-rt to enable build with glibc 2.28
......................................................................

util/crossgcc: patch compiler-rt to enable build with glibc 2.28

Without this change, clang won't build on recent linux distros.

Change-Id: I97d3d375962b22e124583b999080305628237fd5
Signed-off-by: Patrick Georgi <pgeorgi at google.com>
---
A util/crossgcc/patches/compiler-rt-6.0.0.src_ustat.h.patch
1 file changed, 35 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/30317/1

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
new file mode 100644
index 0000000..47bdcc8
--- /dev/null
+++ b/util/crossgcc/patches/compiler-rt-6.0.0.src_ustat.h.patch
@@ -0,0 +1,35 @@
+Taken from https://reviews.llvm.org/D47165?download=true
+
+Index: lib/sanitizer_common/sanitizer_common_syscalls.inc
+===================================================================
+--- lib/sanitizer_common/sanitizer_common_syscalls.inc
++++ a/lib/sanitizer_common/sanitizer_common_syscalls.inc
+@@ -923,7 +923,7 @@
+   }
+ }
+ 
+-#if !SANITIZER_ANDROID
++#if !SANITIZER_LINUX && !SANITIZER_ANDROID
+ PRE_SYSCALL(ustat)(long dev, void *ubuf) {}
+ 
+ POST_SYSCALL(ustat)(long res, long dev, void *ubuf) {
+Index: lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+===================================================================
+--- lib/sanitizer_common/sanitizer_platform_limits_posix.cc
++++ a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+@@ -159,7 +159,6 @@
+ # include <sys/procfs.h>
+ #endif
+ #include <sys/user.h>
+-#include <sys/ustat.h>
+ #include <linux/cyclades.h>
+ #include <linux/if_eql.h>
+ #include <linux/if_plip.h>
+@@ -253,7 +252,6 @@
+ #endif // SANITIZER_LINUX || SANITIZER_FREEBSD
+ 
+ #if SANITIZER_LINUX && !SANITIZER_ANDROID
+-  unsigned struct_ustat_sz = sizeof(struct ustat);
+   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
+ #endif // SANITIZER_LINUX && !SANITIZER_ANDROID

-- 
To view, visit https://review.coreboot.org/c/coreboot/+/30317
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I97d3d375962b22e124583b999080305628237fd5
Gerrit-Change-Number: 30317
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi at google.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181219/eece7c48/attachment.html>


More information about the coreboot-gerrit mailing list