[all-commits] [llvm/llvm-project] 62945b: [Driver] Add PIE support on Solaris
rorth via All-commits
all-commits at lists.llvm.org
Fri Aug 18 12:10:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 62945bb811169ffac7cf22c64b6dd3a3ad8d38f0
https://github.com/llvm/llvm-project/commit/62945bb811169ffac7cf22c64b6dd3a3ad8d38f0
Author: Rainer Orth <ro at gcc.gnu.org>
Date: 2023-08-18 (Fri, 18 Aug 2023)
Changed paths:
M clang/lib/Driver/ToolChains/Solaris.cpp
A clang/test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/crtbeginS.o
A clang/test/Driver/Inputs/solaris_sparc_tree/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/sparcv9/crtbeginS.o
M clang/test/Driver/solaris-ld.c
Log Message:
-----------
[Driver] Add PIE support on Solaris
`clang` currently lacks PIE support on Solaris. This patch fixes this,
also linking with `crtbeginS.o` and `crtendS.o` for `-pie` and `-shared`.
Tested on `amd64-pc-solaris2.11`, `sparcv9-sun-solaris2.11`, and
`x86_64-pc-linux-gnu`.
Differential Revision: https://reviews.llvm.org/D158206
More information about the All-commits
mailing list