[PATCH] D31221: Bypass potential libc's sysconf interceptors

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 16:19:30 PDT 2017


kcc added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:84
+
+#if SANITIZER_LINUX && __GLIBC_PREREQ(2, 16)
+#include <sys/auxv.h>
----------------
I would put the two ifdefs in sync

#if SANITIZER_LINUX && __GLIBC_PREREQ(2, 16)
# define SANITIZER_USE_GETAUXVAL 1
#else
# define SANITIZER_USE_GETAUXVAL 0
#endif

then use SANITIZER_USE_GETAUXVAL 



https://reviews.llvm.org/D31221





More information about the llvm-commits mailing list