Skip to content

Commit bdbca8f

Browse files
committed
[asan][test] asan_prelink_test.cpp: use -fno-pie -no-pie
prelink (will be removed by glibc 2.37) does not support PIE. (cherry picked from commit 6111228)
1 parent 3e10605 commit bdbca8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/asan/TestCases/Linux/asan_prelink_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %clangxx_asan -DBUILD_SO=1 -fPIC -shared %s -o %t.so -Wl,-Ttext-segment=0x3600000000 ||\
88
// RUN: %clangxx_asan -DBUILD_SO=1 -fPIC -shared %s -o %t.so -Wl,--image-base=0x3600000000 ||\
99
// RUN: %clangxx_asan -DBUILD_SO=1 -fPIC -shared %s -o %t.so -Wl,-Ttext=0x3600000000
10-
// RUN: %clangxx_asan %t.o %t.so -Wl,-R. -o %t
10+
// RUN: %clangxx_asan -fno-pie -no-pie %t.o %t.so -Wl,-R. -o %t
1111
// RUN: %env_asan_opts=verbosity=1 %run %t 2>&1 | FileCheck %s
1212

1313
// GNU driver doesn't handle .so files properly.

0 commit comments

Comments
 (0)