Files
clang-p2996/compiler-rt/test/sanitizer_common/TestCases/Linux/pie_no_aslr.cpp
Thurston Dang 6f66b12528 [sanitizer-common] Expand testing for 56-bit address spaces
This patch adds mmap_56bit_test.c, which attempts to deliberately
mmap above 2^47. This currently exposes a failure on ASan on
systems with 56-bit user address spaces, because it allows an mmap
above 2^47 but the shadow mapping is only set up for a 2^47 user address
space.

Additionally, this patch moves pie_no_aslr from the tsan tests into
sanitizer-common, for greater test coverage.

Differential Revision: https://reviews.llvm.org/D149176
2023-04-26 02:48:56 +00:00

5 lines
124 B
C++

// RUN: %clangxx %s -pie -fPIE -o %t && %run setarch x86_64 -R %t
// REQUIRES: x86_64-target-arch
int main() { return 0; }