[compiler-rt] r190853 - [ASan] Link tests with -pie if ASan runtime uses zero-base shadow
Alexey Samsonov
samsonov at google.com
Tue Sep 17 00:50:12 PDT 2013
Author: samsonov
Date: Tue Sep 17 02:50:12 2013
New Revision: 190853
URL: http://llvm.org/viewvc/llvm-project?rev=190853&view=rev
Log:
[ASan] Link tests with -pie if ASan runtime uses zero-base shadow
Modified:
compiler-rt/trunk/lib/asan/tests/CMakeLists.txt
Modified: compiler-rt/trunk/lib/asan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/CMakeLists.txt?rev=190853&r1=190852&r2=190853&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/asan/tests/CMakeLists.txt Tue Sep 17 02:50:12 2013
@@ -80,6 +80,9 @@ set(ASAN_UNITTEST_COMMON_LINKFLAGS -lstd
if(APPLE)
list(APPEND ASAN_UNITTEST_COMMON_LINKFLAGS -framework Foundation)
endif()
+if(ASAN_TESTS_USE_ZERO_BASE_SHADOW)
+ list(APPEND ASAN_UNITTEST_COMMON_LINKFLAGS -pie)
+endif()
set(ASAN_UNITTEST_INSTRUMENTED_LINKFLAGS
${ASAN_UNITTEST_COMMON_LINKFLAGS})
More information about the llvm-commits
mailing list