From 009cea8635f5266381322e0450dfa72758a89c4c Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 24 Jul 2015 14:30:41 +0000 Subject: [PATCH] [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 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/aarch64-elf-raw.h | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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 -- 2.30.2