]> granicus.if.org Git - clang/commit
[Driver] Don't pass --dynamic-linker to ld on Solaris
authorRainer Orth <ro@gcc.gnu.org>
Tue, 16 Jul 2019 11:06:43 +0000 (11:06 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 16 Jul 2019 11:06:43 +0000 (11:06 +0000)
commit22e4d5dc5ddf5737176d7212c8136b4cdd8be804
treebc7e51a4d14fa59008ce6d53ec31cab8832c742f
parent1a24774fb876488ada117514f82ce33174376080
[Driver] Don't pass --dynamic-linker to ld on Solaris

I noticed that clang currently passes --dynamic-linker to ld.  This has been the case
since Solaris 11 support was added initially back in 2012 by David Chisnall (r150580).
I couldn't find any patch submission, let alone a justification, for this, and it seems
completely useless: --dynamic-linker is a gld compatibility form of the option, the
native option being -I.  First of all, however, the dynamic linker passed is simply the
default, so there's no reason at all to specify it in the first place.

This patch removes passing the option and adjusts the affected testcase accordingly.

Tested on x86_64-pc-solaris2.11 and sparcv9-sun-solaris2.11.

Differential Revision: https://reviews.llvm.org/D64493

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366202 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Solaris.cpp
test/Driver/Inputs/solaris_sparc_tree/usr/lib/ld.so.1 [deleted file]
test/Driver/Inputs/solaris_sparc_tree/usr/lib/sparcv9/ld.so.1 [deleted file]
test/Driver/Inputs/solaris_x86_tree/usr/lib/amd64/ld.so.1 [deleted file]
test/Driver/Inputs/solaris_x86_tree/usr/lib/ld.so.1 [deleted file]
test/Driver/solaris-ld.c