[all-commits] [llvm/llvm-project] 183158: [Driver] Fix -r handling on Solaris (#70322)
Rainer Orth via All-commits
all-commits at lists.llvm.org
Thu Oct 26 11:37:44 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 183158b4bc57131cc6223ee0fa9a540dfe7a0653
https://github.com/llvm/llvm-project/commit/183158b4bc57131cc6223ee0fa9a540dfe7a0653
Author: Rainer Orth <ro at gcc.gnu.org>
Date: 2023-10-26 (Thu, 26 Oct 2023)
Changed paths:
M clang/lib/Driver/ToolChains/Solaris.cpp
M clang/test/Driver/solaris-ld.c
Log Message:
-----------
[Driver] Fix -r handling on Solaris (#70322)
As discussed in [[Driver] Link Flang runtime on Solaris](https://github.com/llvm/llvm-project/pull/65644), `clang -r`
incorrectly passes both `-Bdynamic` and `-e _start` to `ld` which lets the linker choke.
This patch fixes this, omitting `-Bdynamic` completely which is the linker default.
Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`.
More information about the All-commits
mailing list