forked from OSchip/llvm-project
![]() In, https://reviews.llvm.org/D120305, CLANG_DEFAULT_PIE_ON_LINUX was set to `On` by default. However, neither `-fpie` nor `-fpic` are currently supported in LLVM Flang. Hence, in this patch the behaviour controlled with CLANG_DEFAULT_PIE_ON_LINUX is refined not to apply to Flang. Another way to look at this is that CLANG_DEFAULT_PIE_ON_LINUX is currently affecting both Clang and Flang. IIUC, the intention for this CMake variable has always been to only affect Clang. This patch makes sure that that's the case. Without this change, you might see errors like this on X86_64: ``` /usr/bin/ld: main.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC ``` I've not experienced any issues on AArch64. That's probably because on AArch64 some object files happen to be position independent without needing -fpie or -fpic. Differential Revision: https://reviews.llvm.org/D128333 |
||
---|---|---|
.. | ||
_static | ||
_templates | ||
_themes/llvm-theme | ||
ArrayComposition.md | ||
BijectiveInternalNameUniquing.md | ||
C++17.md | ||
C++style.md | ||
CMakeLists.txt | ||
Calls.md | ||
Character.md | ||
ControlFlowGraph.md | ||
Directives.md | ||
DoConcurrent.md | ||
Extensions.md | ||
FIRArrayOperations.md | ||
FlangDriver.md | ||
FortranFeatureHistory.md | ||
FortranForCProgrammers.md | ||
FortranIR.md | ||
FortranLLVMTestSuite.md | ||
GettingInvolved.md | ||
IORuntimeInternals.md | ||
ImplementingASemanticCheck.md | ||
Intrinsics.md | ||
LabelResolution.md | ||
ModFiles.md | ||
OpenMP-4.5-grammar.md | ||
OpenMP-semantics.md | ||
OptionComparison.md | ||
Overview.md | ||
ParserCombinators.md | ||
Parsing.md | ||
Preprocessing.md | ||
PullRequestChecklist.md | ||
ReleaseNotes.md | ||
RuntimeDescriptor.md | ||
RuntimeTypeInfo.md | ||
Semantics.md | ||
compiler_driver.png | ||
conf.py | ||
doxygen-mainpage.dox | ||
doxygen.cfg.in | ||
f2018-grammar.md | ||
flang-c-style.el | ||
frontend_driver.png | ||
index.md |