aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-12-14 10:08:59 -0800
committerFangrui Song <i@maskray.me>2021-12-14 10:09:00 -0800
commit1042de90589c74c6998c127d1ee1b33ff3efb8cc (patch)
treec94d0416339f5a7f141c279b00bb2d1f6d0bbf89 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentf0ca8d2461a7f3c8b092f4f58451dc7b9bf4f28b (diff)
downloadllvm-1042de90589c74c6998c127d1ee1b33ff3efb8cc.zip
llvm-1042de90589c74c6998c127d1ee1b33ff3efb8cc.tar.gz
llvm-1042de90589c74c6998c127d1ee1b33ff3efb8cc.tar.bz2
[Driver] Add CLANG_DEFAULT_PIE_ON_LINUX to emulate GCC --enable-default-pie
In 2015-05, GCC added the configure option `--enable-default-pie`. When enabled, * in the absence of -fno-pic/-fpie/-fpic (and their upper-case variants), -fPIE is the default. * in the absence of -no-pie/-pie/-shared/-static/-static-pie, -pie is the default. This has been adopted by all(?) major distros. I think default PIE is the majority in the Linux world, but --disable-default-pie users is not that uncommon because GCC upstream hasn't switched the default yet (https://gcc.gnu.org/PR103398). This patch add CLANG_DEFAULT_PIE_ON_LINUX which allows distros to use default PIE. The option is justified as its adoption can be very high among Linux distros to make Clang default match GCC, and is likely a future-new-default, at which point we will remove CLANG_DEFAULT_PIE_ON_LINUX. The lit feature `default-pie-on-linux` can be handy to exclude default PIE sensitive tests. Reviewed By: foutrelis, sylvestre.ledru, thesamesam Differential Revision: https://reviews.llvm.org/D113372
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions