[PATCH] D138099: [BOLT][runtime] Change fPIE flag to fPIC
Vladislav Khmelevsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 00:16:37 PST 2022
yota9 created this revision.
yota9 added reviewers: maksfb, rafauler, Amir.
Herald added subscribers: treapster, ayermolo.
Herald added a project: All.
yota9 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Since instrumentation could be used on libraries we need to use fPIC,
not fPIE flag.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138099
Files:
bolt/runtime/CMakeLists.txt
Index: bolt/runtime/CMakeLists.txt
===================================================================
--- bolt/runtime/CMakeLists.txt
+++ bolt/runtime/CMakeLists.txt
@@ -28,7 +28,7 @@
-fno-rtti
-fno-stack-protector
-mno-sse
- -fPIE)
+ -fPIC)
# Don't let the compiler think it can create calls to standard libs
target_compile_options(bolt_rt_instr PRIVATE ${BOLT_RT_FLAGS})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138099.475707.patch
Type: text/x-patch
Size: 389 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221116/8b6967cd/attachment.bin>
More information about the llvm-commits
mailing list