[compiler-rt] 6111228 - [asan][test] asan_prelink_test.cpp: use -fno-pie -no-pie

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 16:09:24 PST 2022


Author: Fangrui Song
Date: 2022-02-24T16:09:18-08:00
New Revision: 611122892e6d5813444bdd0e1fbe0a96f6e09779

URL: https://github.com/llvm/llvm-project/commit/611122892e6d5813444bdd0e1fbe0a96f6e09779
DIFF: https://github.com/llvm/llvm-project/commit/611122892e6d5813444bdd0e1fbe0a96f6e09779.diff

LOG: [asan][test] asan_prelink_test.cpp: use -fno-pie -no-pie

prelink (will be removed by glibc 2.37) does not support PIE.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/Linux/asan_prelink_test.cpp b/compiler-rt/test/asan/TestCases/Linux/asan_prelink_test.cpp
index 9c70b61291b36..2dfe689ddcbbc 100644
--- a/compiler-rt/test/asan/TestCases/Linux/asan_prelink_test.cpp
+++ b/compiler-rt/test/asan/TestCases/Linux/asan_prelink_test.cpp
@@ -7,7 +7,7 @@
 // RUN: %clangxx_asan -DBUILD_SO=1 -fPIC -shared %s -o %t.so -Wl,-Ttext-segment=0x3600000000 ||\
 // RUN:   %clangxx_asan -DBUILD_SO=1 -fPIC -shared %s -o %t.so -Wl,--image-base=0x3600000000 ||\
 // RUN:   %clangxx_asan -DBUILD_SO=1 -fPIC -shared %s -o %t.so -Wl,-Ttext=0x3600000000
-// RUN: %clangxx_asan %t.o %t.so -Wl,-R. -o %t
+// RUN: %clangxx_asan -fno-pie -no-pie %t.o %t.so -Wl,-R. -o %t
 // RUN: %env_asan_opts=verbosity=1 %run %t 2>&1 | FileCheck %s
 
 // GNU driver doesn't handle .so files properly.


        


More information about the llvm-commits mailing list