[compiler-rt] r322588 - [hwasan] Build runtime library with -fPIC, not -fPIE.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 11:21:45 PST 2018
Author: eugenis
Date: Tue Jan 16 11:21:45 2018
New Revision: 322588
URL: http://llvm.org/viewvc/llvm-project?rev=322588&view=rev
Log:
[hwasan] Build runtime library with -fPIC, not -fPIE.
Summary: -fPIE can not be used when building a shared library.
Reviewers: alekseyshl, peter.smith
Subscribers: kubamracek, llvm-commits, mgorny
Differential Revision: https://reviews.llvm.org/D42121
Modified:
compiler-rt/trunk/lib/hwasan/CMakeLists.txt
Modified: compiler-rt/trunk/lib/hwasan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/hwasan/CMakeLists.txt?rev=322588&r1=322587&r2=322588&view=diff
==============================================================================
--- compiler-rt/trunk/lib/hwasan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/hwasan/CMakeLists.txt Tue Jan 16 11:21:45 2018
@@ -17,7 +17,7 @@ set(HWASAN_RTL_CXX_SOURCES
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)
More information about the llvm-commits
mailing list