gcc: LINK_SPEC: Gently refactor

Update LINK_SPEC (for arm, i386, x86_64 and ppc) with more compact but
functionally equivalent sequences.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Simon South 2015-10-22 03:47:26 -04:00 committed by Jérôme Duval
parent aff4b1860d
commit bfa8159478
4 changed files with 9 additions and 9 deletions

View File

@ -78,7 +78,7 @@
#define LINK_SPEC \
"%{!o*:-o %b} -m armelf \
%{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
:-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
%{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}} \
%{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
:-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
%{nostart|shared:-e 0;:-no-undefined} %{mbig-endian:-EB} \
%{mlittle-endian:-EL} -X"

View File

@ -56,8 +56,8 @@ Boston, MA 02111-1307, USA. */
#define LINK_SPEC \
"-m elf_i386_haiku \
%{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
:-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
%{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}}"
:-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
%{nostart|shared:-e 0;:-no-undefined}"
/* A C statement (sans semicolon) to output to the stdio stream
FILE the assembler definition of uninitialized global DECL named

View File

@ -67,8 +67,8 @@ Boston, MA 02111-1307, USA. */
#define LINK_SPEC \
"%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386_haiku} \
%{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
:-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
%{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}}"
:-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
%{nostart|shared:-e 0;:-no-undefined}"
/* A C statement (sans semicolon) to output to the stdio stream
FILE the assembler definition of uninitialized global DECL named

View File

@ -56,8 +56,8 @@ Boston, MA 02111-1307, USA. */
#define LINK_SPEC \
"%{!o*:-o %b} -m elf32ppchaiku \
%{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
:-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
%{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}}"
:-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
%{nostart|shared:-e 0;:-no-undefined}"
#undef CC1_SPEC
#define CC1_SPEC \