Reland "[Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON""
authorFangrui Song <i@maskray.me>
Thu, 7 Apr 2022 03:19:07 +0000 (20:19 -0700)
committerFangrui Song <i@maskray.me>
Thu, 7 Apr 2022 03:19:07 +0000 (20:19 -0700)
commit2aca33baf15926afe2520a06b1427a9894226fd2
tree29bf595b09a9b4294d08e00491a30889734d72da
parentef437a7d3f6f7879154a008c323e78101040490b
Reland "[Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON""

(The upgrade of the ppc64le bot and D121257 have fixed compiler-rt failures. Tested by nemanjai.)

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
clang/CMakeLists.txt
clang/docs/ReleaseNotes.rst
clang/test/Driver/hip-fpie-option.hip
lldb/test/API/functionalities/tail_call_frames/unambiguous_sequence/TestUnambiguousTailCalls.py
lldb/test/Shell/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test
llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn
utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h