From: Iain Sandoe Date: Wed, 3 Jul 2019 18:43:55 +0000 (+0000) Subject: [Darwin] Revise pie,no-pie and rdynamic driver specs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03eddfb3b57152121154cf64fcd5c145000ee7f3;p=gcc.git [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 * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f1794c89043..d22753db1ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2019-07-03 Iain Sandoe + + * 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. + 2019-07-03 Iain Sandoe * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin. diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 72215cea9c3..e17bc64af15 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -124,30 +124,25 @@ extern GTY(()) int darwin_ms_struct; "%{fapple-kext|mkernel:-static}", \ "%{shared:-Zdynamiclib} %= 10.5 mmacosx-version-min= -Xlinker) \ - %:version-compare(>= 10.5 mmacosx-version-min= -pie) }} %= 10.5 mmacosx-version-min= -pie) }} " #define DARWIN_NOPIE_SPEC \ "%{no-pie|fno-pie|fno-PIE: \ - %:version-compare(>= 10.7 mmacosx-version-min= -Xlinker ) \ - %:version-compare(>= 10.7 mmacosx-version-min= -no_pie) } %= 10.7 mmacosx-version-min= -no_pie) }" #define DARWIN_CC1_SPEC \ "%{findirect-virtual-calls: -fapple-kext} %