[Darwin] Revise pie,no-pie and rdynamic driver specs.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 3 Jul 2019 18:43:55 +0000 (18:43 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 3 Jul 2019 18:43:55 +0000 (18:43 +0000)
commit03eddfb3b57152121154cf64fcd5c145000ee7f3
tree941ec8ffc2065e4cb26e569a13d6414ab18b2258
parent179c7ef523f4331036fe70c298c2f5f46e4ba3b1
[Darwin] Revise pie,no-pie and rdynamic driver specs.

Processing these early and pushing the corresponding Xlinker lines
has the effect that the driver then supposes that there are linker
inputs, and causes a link line to be created when it is not needed

The solution is to place these drive specs into the link spec and
claim them at the end of that.

2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
(RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
(DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
clauses.
(LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
DARWIN_NOPIE_SPEC.

From-SVN: r273017
gcc/ChangeLog
gcc/config/darwin.h