[AArch64] Fix LINUX_TARGET_LINK_SPEC to be consistent with ARM
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 24 Jul 2015 14:27:55 +0000 (14:27 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Fri, 24 Jul 2015 14:27:55 +0000 (14:27 +0000)
2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>

PR target/65711
* config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
-dynamic-linker within %{!static %{!shared, and -rdynamic within
%{!static.

From-SVN: r226158

gcc/ChangeLog
gcc/config/aarch64/aarch64-linux.h

index aed24e73723ada4ed25b6084268cf3a9a1a4ac6a..b8a3ec86896a8a21aa85134ed6430a673ca96a30 100644 (file)
@@ -1,3 +1,10 @@
+2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       PR target/65711
+       * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
+       -dynamic-linker within %{!static %{!shared, and -rdynamic within
+       %{!static.
+
 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
 
        PR ipa/66566
index 1600a322b1c58b6b9b3ff1c1f79a79f0e29c4701..c51c8b27e42f01e6848eb3e57357897fd8fd5b2d 100644 (file)
@@ -38,8 +38,9 @@
    %{static:-Bstatic}                          \
    %{shared:-shared}                           \
    %{symbolic:-Bsymbolic}                      \
-   %{rdynamic:-export-dynamic}                 \
-   -dynamic-linker " GNU_USER_DYNAMIC_LINKER " \
+   %{!static:                                  \
+     %{rdynamic:-export-dynamic}               \
+     %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \
    -X                                          \
    %{mbig-endian:-EB} %{mlittle-endian:-EL}     \
    -maarch64linux%{mabi=ilp32:32}%{mbig-endian:b}"