[AArch64] elf toolchain does not pass -shared linker option
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 24 Jul 2015 14:30:41 +0000 (14:30 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Fri, 24 Jul 2015 14:30:41 +0000 (14:30 +0000)
2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>

* config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
-shared, -symbolic, -rdynamic.

From-SVN: r226159

gcc/ChangeLog
gcc/config/aarch64/aarch64-elf-raw.h

index b8a3ec86896a8a21aa85134ed6430a673ca96a30..dac9e4a3afd9d8499e4817233b55f0790716f179 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
+       -shared, -symbolic, -rdynamic.
+
 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
 
        PR target/65711
index bd5e51c8622de7e852fc70e6b0f9452245196208..d8c682f433f5d303766283a031d5058890673da4 100644 (file)
 #endif
 
 #ifndef LINK_SPEC
-#define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X \
+#define LINK_SPEC "%{h*}                       \
+   %{static:-Bstatic}                          \
+   %{shared:-shared}                           \
+   %{symbolic:-Bsymbolic}                      \
+   %{!static:%{rdynamic:-export-dynamic}}      \
+   %{mbig-endian:-EB} %{mlittle-endian:-EL} -X \
   -maarch64elf%{mabi=ilp32*:32}%{mbig-endian:b}" \
   CA53_ERR_835769_SPEC \
   CA53_ERR_843419_SPEC