[all-commits] [llvm/llvm-project] ca6803: Reland "[Driver] Default CLANG_DEFAULT_PIE_ON_LINU...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Apr 8 23:40:31 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ca68038d12a23fa7ebb2b1ccbda93c321635e6bf
https://github.com/llvm/llvm-project/commit/ca68038d12a23fa7ebb2b1ccbda93c321635e6bf
Author: Fangrui Song <i at maskray.me>
Date: 2022-04-08 (Fri, 08 Apr 2022)
Changed paths:
M clang/CMakeLists.txt
M clang/docs/ReleaseNotes.rst
M clang/test/Driver/hip-fpie-option.hip
M lldb/test/API/functionalities/tail_call_frames/unambiguous_sequence/TestUnambiguousTailCalls.py
M lldb/test/Shell/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test
M llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn
M utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h
Log Message:
-----------
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
More information about the All-commits
mailing list