From: Szabolcs Nagy Date: Fri, 24 Jul 2015 14:30:41 +0000 (+0000) Subject: [AArch64] elf toolchain does not pass -shared linker option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=009cea8635f5266381322e0450dfa72758a89c4c;p=gcc.git [AArch64] elf toolchain does not pass -shared linker option 2015-07-24 Szabolcs Nagy * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static, -shared, -symbolic, -rdynamic. From-SVN: r226159 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b8a3ec86896..dac9e4a3afd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-07-24 Szabolcs Nagy + + * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static, + -shared, -symbolic, -rdynamic. + 2015-07-24 Szabolcs Nagy PR target/65711 diff --git a/gcc/config/aarch64/aarch64-elf-raw.h b/gcc/config/aarch64/aarch64-elf-raw.h index bd5e51c8622..d8c682f433f 100644 --- a/gcc/config/aarch64/aarch64-elf-raw.h +++ b/gcc/config/aarch64/aarch64-elf-raw.h @@ -44,7 +44,12 @@ #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