[PATCH] D128333: [clang][flang] Disable defaulting to `-fpie` for LLVM Flang
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 23 10:36:49 PDT 2022
MaskRay requested changes to this revision.
MaskRay added a comment.
This revision now requires changes to proceed.
gfortran defaults to PIE as well.
> We can revisit this once support for -fpie and -fpic is available in LLVM Flang. I'm not aware of anyone actively working in this area.
Disagree. The PIE default should be fine. When PIE support is added, the default mode naturally becomes PIE.
Note: -fpie object files can be linked with either -no-pie or -pie. -fno-pic object files can only be linked with -no-pie.
-fpie is more portable than -fno-pic.
(Why does flang use clang/lib/Driver? For clang developers, it seems that `check-clang check-clang-tools` is not sufficient. `check-flang` needs to be used as well.)
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits