[compiler-rt] 6c75db8 - Disable getauxval for Go

Keith Randall via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 31 10:13:15 PDT 2020


Author: Keith Randall
Date: 2020-07-31T10:13:03-07:00
New Revision: 6c75db8b4bc59eace18143ce086419d37da24746

URL: https://github.com/llvm/llvm-project/commit/6c75db8b4bc59eace18143ce086419d37da24746
DIFF: https://github.com/llvm/llvm-project/commit/6c75db8b4bc59eace18143ce086419d37da24746.diff

LOG: Disable getauxval for Go

We want the Go build to not use getauxval, as we must support glibc < 2.16 platforms.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D84859

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h b/compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h
index 86ad3a5e2c2a..38439e44f611 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h
@@ -21,8 +21,9 @@
 
 #if SANITIZER_LINUX || SANITIZER_FUCHSIA
 
-# if __GLIBC_PREREQ(2, 16) || (SANITIZER_ANDROID && __ANDROID_API__ >= 21) || \
-     SANITIZER_FUCHSIA
+# if (__GLIBC_PREREQ(2, 16) || (SANITIZER_ANDROID && __ANDROID_API__ >= 21) || \
+      SANITIZER_FUCHSIA) &&                                                    \
+     !SANITIZER_GO
 #  define SANITIZER_USE_GETAUXVAL 1
 # else
 #  define SANITIZER_USE_GETAUXVAL 0


        


More information about the llvm-commits mailing list