diff options
author | Fangrui Song <i@maskray.me> | 2022-04-08 23:40:18 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-04-08 23:40:18 -0700 |
commit | ca68038d12a23fa7ebb2b1ccbda93c321635e6bf (patch) | |
tree | a9d544c2e1b55169fbfecfc665b1a7b7a99155b4 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | bbb72122aa27a2398b7c06394c879149fd723ccb (diff) | |
download | llvm-ca68038d12a23fa7ebb2b1ccbda93c321635e6bf.zip llvm-ca68038d12a23fa7ebb2b1ccbda93c321635e6bf.tar.gz llvm-ca68038d12a23fa7ebb2b1ccbda93c321635e6bf.tar.bz2 |
Reland "[Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON""
(With C++ exceptions, `clang++ --target=mips64{,el}-linux-gnu -fpie -pie
-fuse-ld=lld` has link errors (lld does not implement some strange R_MIPS_64
.eh_frame handling in GNU ld). However, sanitizer-x86_64-linux-qemu used this to
build ScudoUnitTests. Pined ScudoUnitTests to -no-pie.)
Default the option introduced in D113372 to ON to match all(?) major Linux
distros. This matches GCC and improves consistency with Android and linux-musl
which always default to PIE.
Note: CLANG_DEFAULT_PIE_ON_LINUX may be removed in the future.
Differential Revision: https://reviews.llvm.org/D120305
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions