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
This commit is contained in:
Keith Randall 2020-07-31 10:04:04 -07:00
parent 86609b7af7
commit 6c75db8b4b
1 changed files with 3 additions and 2 deletions

View File

@ -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