[PATCH] D42121: [hwasan] Build runtime library with -fPIC, not -fPIE.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 11:13:21 PST 2018
eugenis created this revision.
eugenis added reviewers: alekseyshl, peter.smith.
Herald added subscribers: mgorny, kubamracek.
-fPIE can not be used when building a shared library.
https://reviews.llvm.org/D42121
Files:
compiler-rt/lib/hwasan/CMakeLists.txt
Index: compiler-rt/lib/hwasan/CMakeLists.txt
===================================================================
--- compiler-rt/lib/hwasan/CMakeLists.txt
+++ compiler-rt/lib/hwasan/CMakeLists.txt
@@ -17,7 +17,7 @@
set(HWASAN_RTL_CFLAGS ${SANITIZER_COMMON_CFLAGS})
append_rtti_flag(OFF HWASAN_RTL_CFLAGS)
-append_list_if(COMPILER_RT_HAS_FPIE_FLAG -fPIE HWASAN_RTL_CFLAGS)
+append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC HWASAN_RTL_CFLAGS)
# Prevent clang from generating libc calls.
append_list_if(COMPILER_RT_HAS_FFREESTANDING_FLAG -ffreestanding HWASAN_RTL_CFLAGS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42121.130000.patch
Type: text/x-patch
Size: 575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180116/f58a252f/attachment.bin>
More information about the llvm-commits
mailing list