[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:23:20 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL322588: [hwasan] Build runtime library with -fPIC, not -fPIE. (authored by eugenis, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D42121?vs=130000&id=130001#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D42121

Files:
  compiler-rt/trunk/lib/hwasan/CMakeLists.txt


Index: compiler-rt/trunk/lib/hwasan/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/hwasan/CMakeLists.txt
+++ compiler-rt/trunk/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.130001.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180116/4b4a92be/attachment.bin>


More information about the llvm-commits mailing list