rebase of the patches

This commit is contained in:
Sylvestre Ledru 2021-11-15 12:52:30 +01:00
parent 52c4a26c45
commit 87de963800

View File

@ -2,7 +2,7 @@ Index: llvm-toolchain-snapshot_14~++20211114113341+fbe72e41b99d/compiler-rt/test
===================================================================
--- llvm-toolchain-snapshot_14~++20211114113341+fbe72e41b99d.orig/compiler-rt/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
@@ -1,36 +0,0 @@
-// RUN: %clangxx -O2 %s -o %t && %run %t 2>&1 | FileCheck %s
-
-#include <stdio.h>
@ -14,7 +14,8 @@ Index: llvm-toolchain-snapshot_14~++20211114113341+fbe72e41b99d/compiler-rt/test
-
-// getauxval() used instead of sysconf() in GetPageSize() is defined starting
-// glbc version 2.16.
-#if __GLIBC_PREREQ(2, 16)
-// Does not work with 2.31 and above at it calls sysconf for SIGSTKSZ.
-#if __GLIBC_PREREQ(2, 16) && !__GLIBC_PREREQ(2, 31)
-extern "C" long sysconf(int name) {
-# ifdef _SC_SIGSTKSZ
- // Asan needs this one during initialization but late enough to succeed.
@ -24,7 +25,7 @@ Index: llvm-toolchain-snapshot_14~++20211114113341+fbe72e41b99d/compiler-rt/test
- fprintf(stderr, "sysconf wrapper called: %d\n", name);
- return 0;
-}
-#endif // defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16)
-#endif
-
-int main() {
- // All we need to check is that the sysconf() interceptor defined above was