diff options
Diffstat (limited to 'ld')
35 files changed, 64 insertions, 271 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 8514750..a101489 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,40 @@ +2018-04-18 Alan Modra <amodra@gmail.com> + + * Makefile.am: Remove support for assorted i386 aout and coff targets. + * configure.tgt: Likewise. + * testsuite/ld-discard/discard.exp: Likewise. + * testsuite/ld-elf/binutils.exp: Likewise. + * testsuite/ld-elf/tls.exp: Likewise. + * testsuite/ld-elf/tls_common.exp: Likewise. + * testsuite/ld-elfvers/vers.exp: Likewise. + * testsuite/ld-elfvsb/elfvsb.exp: Likewise. + * testsuite/ld-elfweak/elfweak.exp: Likewise. + * testsuite/ld-gc/abi-note.d: Likewise. + * testsuite/ld-gc/pr19167.d: Likewise. + * testsuite/ld-gc/pr20022.d: Likewise. + * testsuite/ld-gc/start.d: Likewise. + * testsuite/ld-gc/stop.d: Likewise. + * testsuite/ld-i386/i386.exp: Likewise. + * testsuite/ld-ifunc/binutils.exp: Likewise. + * testsuite/ld-ifunc/ifunc.exp: Likewise. + * testsuite/ld-linkonce/linkonce.exp: Likewise. + * testsuite/ld-plugin/lto.exp: Likewise. + * testsuite/ld-scripts/empty-address-2a.d: Likewise. + * testsuite/ld-scripts/empty-address-2b.d: Likewise. + * testsuite/ld-scripts/phdrs2.exp: Likewise. + * testsuite/ld-scripts/section-match-1.d: Likewise. + * testsuite/ld-shared/shared.exp: Likewise. + * testsuite/ld-size/size.exp: Likewise. + * testsuite/ld-sparc/sparc.exp: Likewise. + * emulparams/i386coff.sh: Delete. + * emulparams/i386linux.sh: Delete. + * emulparams/i386mach.sh: Delete. + * emulparams/i386nbsd.sh: Delete. + * emulparams/vsta.sh: Delete. + * scripttempl/i386coff.sc: Delete. + * Makefile.in: Regenerate. + * po/BLD-POTFILES.in: Regenerate. + 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com> Microblaze Target: PIC data text relative diff --git a/ld/Makefile.am b/ld/Makefile.am index 4ae2c0f..9a4a49f 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -305,17 +305,12 @@ ALL_EMULATION_SOURCES = \ ehppalinux.c \ ehppanbsd.c \ ehppaobsd.c \ - ei386aout.c \ ei386beos.c \ ei386bsd.c \ - ei386coff.c \ ei386go32.c \ - ei386linux.c \ ei386lynx.c \ - ei386mach.c \ ei386moss.c \ ei386msdos.c \ - ei386nbsd.c \ ei386nto.c \ ei386pe.c \ ei386pe_posix.c \ @@ -381,7 +376,6 @@ ALL_EMULATION_SOURCES = \ ev850_rh850.c \ evanilla.c \ evaxnbsd.c \ - evsta.c \ exgateelf.c \ ez80.c \ ez8001.c \ @@ -1362,39 +1356,24 @@ ehppaobsd.c: $(srcdir)/emulparams/hppaobsd.sh \ $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} -ei386aout.c: $(srcdir)/emulparams/i386aout.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - ei386beos.c: $(srcdir)/emulparams/i386beos.sh \ $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS} ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} -ei386coff.c: $(srcdir)/emulparams/i386coff.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS} - ei386go32.c: $(srcdir)/emulparams/i386go32.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS} -ei386linux.c: $(srcdir)/emulparams/i386linux.sh \ - $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} -ei386mach.c: $(srcdir)/emulparams/i386mach.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - ei386moss.c: $(srcdir)/emulparams/i386moss.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS} -ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - ei386nto.c: $(srcdir)/emulparams/i386nto.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} @@ -1673,9 +1652,6 @@ evanilla.c: $(srcdir)/emulparams/vanilla.sh \ evaxnbsd.c: $(srcdir)/emulparams/vaxnbsd.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} -evsta.c: $(srcdir)/emulparams/vsta.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - exgateelf.c: $(srcdir)/emulparams/xgateelf.sh \ $(srcdir)/emultempl/generic.em $(ELF_DEPS) \ $(srcdir)/scripttempl/elfxgate.sc ${GEN_DEPENDS} diff --git a/ld/Makefile.in b/ld/Makefile.in index 3353448..53353cb 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -674,17 +674,12 @@ ALL_EMULATION_SOURCES = \ ehppalinux.c \ ehppanbsd.c \ ehppaobsd.c \ - ei386aout.c \ ei386beos.c \ ei386bsd.c \ - ei386coff.c \ ei386go32.c \ - ei386linux.c \ ei386lynx.c \ - ei386mach.c \ ei386moss.c \ ei386msdos.c \ - ei386nbsd.c \ ei386nto.c \ ei386pe.c \ ei386pe_posix.c \ @@ -750,7 +745,6 @@ ALL_EMULATION_SOURCES = \ ev850_rh850.c \ evanilla.c \ evaxnbsd.c \ - evsta.c \ exgateelf.c \ ez80.c \ ez8001.c \ @@ -1288,17 +1282,12 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehppalinux.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehppanbsd.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehppaobsd.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386aout.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386beos.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386bsd.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386coff.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386go32.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386linux.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386lynx.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386mach.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386moss.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386msdos.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386nbsd.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386nto.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386pe.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ei386pe_posix.Po@am__quote@ @@ -1367,7 +1356,6 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ev850_rh850.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evanilla.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evaxnbsd.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evsta.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exgateelf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ez80.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ez8001.Po@am__quote@ @@ -2872,39 +2860,24 @@ ehppaobsd.c: $(srcdir)/emulparams/hppaobsd.sh \ $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} -ei386aout.c: $(srcdir)/emulparams/i386aout.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - ei386beos.c: $(srcdir)/emulparams/i386beos.sh \ $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS} ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} -ei386coff.c: $(srcdir)/emulparams/i386coff.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS} - ei386go32.c: $(srcdir)/emulparams/i386go32.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS} -ei386linux.c: $(srcdir)/emulparams/i386linux.sh \ - $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} -ei386mach.c: $(srcdir)/emulparams/i386mach.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - ei386moss.c: $(srcdir)/emulparams/i386moss.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS} -ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - ei386nto.c: $(srcdir)/emulparams/i386nto.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} @@ -3183,9 +3156,6 @@ evanilla.c: $(srcdir)/emulparams/vanilla.sh \ evaxnbsd.c: $(srcdir)/emulparams/vaxnbsd.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} -evsta.c: $(srcdir)/emulparams/vsta.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} - exgateelf.c: $(srcdir)/emulparams/xgateelf.sh \ $(srcdir)/emultempl/generic.em $(ELF_DEPS) \ $(srcdir)/scripttempl/elfxgate.sc ${GEN_DEPENDS} diff --git a/ld/configure.tgt b/ld/configure.tgt index 93bd07f..0dde29e 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -232,14 +232,9 @@ hppa*-*-netbsd*) targ_emul=hppanbsd ;; hppa*-*-openbsd*) targ_emul=hppaobsd ;; i[3-7]86-*-nto-qnx*) targ_emul=i386nto ;; -i[3-7]86-*-vsta) targ_emul=vsta ;; i[3-7]86-*-go32) targ_emul=i386go32 ;; i[3-7]86-*-msdosdjgpp*) targ_emul=i386go32 ;; -i[3-7]86-*-aix*) targ_emul=i386coff ;; -i[3-7]86-*-sco*) targ_emul=i386coff ;; -i[3-7]86-*-isc*) targ_emul=i386coff ;; i[3-7]86-*-lynxos*) targ_emul=i386lynx ;; -i[3-7]86-*-coff) targ_emul=i386coff ;; i[3-7]86-*-aros*) targ_emul=elf_i386 targ_extra_emuls=elf_iamcu ;; i[3-7]86-*-rdos*) targ_emul=elf_i386 @@ -249,28 +244,18 @@ x86_64-*-cloudabi*) targ_emul=elf_x86_64_cloudabi ;; i[3-7]86-*-bsd) targ_emul=i386bsd ;; i[3-7]86-*-bsd386) targ_emul=i386bsd ;; i[3-7]86-*-bsdi*) targ_emul=i386bsd ;; -i[3-7]86-*-aout) targ_emul=i386aout ;; -i[3-7]86-*-linux*aout*) targ_emul=i386linux - targ_extra_emuls="elf_i386 elf_iamcu" - tdir_elf_iamcu=`echo ${targ_alias} | sed -e 's/aout//'` - tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'` ;; -i[3-7]86-*-linux*oldld) targ_emul=i386linux - targ_extra_emuls="elf_i386 elf_iamcu" ;; i[3-7]86-*-linux-*) targ_emul=elf_i386 - targ_extra_emuls="i386linux elf_iamcu" + targ_extra_emuls="elf_iamcu" targ64_extra_emuls="elf_x86_64 elf32_x86_64 elf_l1om elf_k1om" - targ64_extra_libpath="elf_x86_64 elf32_x86_64" - tdir_i386linux=${targ_alias}aout ;; + targ64_extra_libpath="elf_x86_64 elf32_x86_64" ;; x86_64-*-linux-gnux32) targ_emul=elf32_x86_64 - targ_extra_emuls="elf_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om" + targ_extra_emuls="elf_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om" targ_extra_libpath="elf_i386 elf_iamcu elf_x86_64 elf_l1om elf_k1om" - tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'` tdir_elf_iamcu=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'` tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'` ;; x86_64-*-linux-*) targ_emul=elf_x86_64 - targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om" + targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om" targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om" - tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'` tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;; i[3-7]86-*-redox*) targ_emul=elf_i386 targ_extra_emuls=elf_x86_64 ;; @@ -297,13 +282,11 @@ i[3-7]86-*-netbsdelf* | \ i[3-7]86-*-netbsd*-gnu* | \ i[3-7]86-*-knetbsd*-gnu) targ_emul=elf_i386 - targ_extra_emuls="elf_iamcu i386nbsd" ;; + targ_extra_emuls="elf_iamcu" ;; i[3-7]86-*-netbsdpe*) targ_emul=i386pe targ_extra_ofiles="deffilep.o pe-dll.o" ;; -i[3-7]86-*-netbsd*) targ_emul=i386nbsd - targ_extra_emuls=elf_i386 ;; x86_64-*-netbsd*) targ_emul=elf_x86_64 - targ_extra_emuls="elf_i386 elf_iamcu i386nbsd elf_l1om elf_k1om" + targ_extra_emuls="elf_i386 elf_iamcu elf_l1om elf_k1om" tdir_elf_iamcu=`echo ${targ_alias} | \ sed -e 's/x86_64/i386/'` case "${tdir_elf_iamcu}" in @@ -330,8 +313,6 @@ x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia*) tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;; i[3-7]86-*-kaos*) targ_emul=elf_i386 ;; -i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12]) - targ_emul=i386bsd ;; i[3-7]86-*-dragonfly*) targ_emul=elf_i386 targ_extra_emuls="elf_iamcu i386bsd" ;; x86_64-*-dragonfly*) targ_emul=elf_x86_64 @@ -349,9 +330,6 @@ x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) | sed -e 's/x86_64/i386/'` tdir_elf_i386=`echo ${targ_alias} \ | sed -e 's/x86_64/i386/'` ;; -i[3-7]86-*-sysv*) targ_emul=i386coff ;; -i[3-7]86-*-ptx*) targ_emul=i386coff ;; -i[3-7]86-*-mach*) targ_emul=i386mach ;; i[3-7]86-*-gnu*) targ_emul=elf_i386 targ_extra_emuls=elf_iamcu ;; i[3-7]86-*-msdos*) targ_emul=i386msdos; targ_extra_emuls=i386aout ;; diff --git a/ld/emulparams/i386coff.sh b/ld/emulparams/i386coff.sh deleted file mode 100644 index 3417b7d..0000000 --- a/ld/emulparams/i386coff.sh +++ /dev/null @@ -1,5 +0,0 @@ -SCRIPT_NAME=i386coff -OUTPUT_FORMAT="coff-i386" -TEXT_START_ADDR=0x1000000 -TARGET_PAGE_SIZE=0x1000000 -ARCH=i386 diff --git a/ld/emulparams/i386linux.sh b/ld/emulparams/i386linux.sh deleted file mode 100644 index 7b7463a..0000000 --- a/ld/emulparams/i386linux.sh +++ /dev/null @@ -1,9 +0,0 @@ -SCRIPT_NAME=aout -OUTPUT_FORMAT="a.out-i386-linux" -TARGET_PAGE_SIZE=0x1000 -TEXT_START_ADDR=0x1020 -case ${LD_FLAG} in - n|N) TEXT_START_ADDR=0 ;; -esac -ARCH=i386 -TEMPLATE_NAME=linux diff --git a/ld/emulparams/i386mach.sh b/ld/emulparams/i386mach.sh deleted file mode 100644 index dc44602..0000000 --- a/ld/emulparams/i386mach.sh +++ /dev/null @@ -1,9 +0,0 @@ -SCRIPT_NAME=aout -OUTPUT_FORMAT="a.out-mach3" -TEXT_START_ADDR=0x10020 -case ${LD_FLAG} in - n|N) TEXT_START_ADDR=0x10000 ;; -esac -SEGMENT_SIZE=0x1000 -PAD_TEXT=t -ARCH=i386 diff --git a/ld/emulparams/i386nbsd.sh b/ld/emulparams/i386nbsd.sh deleted file mode 100644 index a9e6a38..0000000 --- a/ld/emulparams/i386nbsd.sh +++ /dev/null @@ -1,6 +0,0 @@ -SCRIPT_NAME=aout -TEXT_START_ADDR=0x1020 -OUTPUT_FORMAT="a.out-i386-netbsd" -TARGET_PAGE_SIZE=0x1000 -ARCH=i386 -EXECUTABLE_SYMBOLS='__DYNAMIC = 0;' diff --git a/ld/emulparams/vsta.sh b/ld/emulparams/vsta.sh deleted file mode 100644 index 0610f30..0000000 --- a/ld/emulparams/vsta.sh +++ /dev/null @@ -1,10 +0,0 @@ -SCRIPT_NAME=aout -OUTPUT_FORMAT="a.out-i386" -TEXT_START_ADDR=0x1020 -TARGET_PAGE_SIZE=0x1000 -SEGMENT_SIZE=0x400000 -case ${LD_FLAG} in - n|N) TEXT_START_ADDR=0 ;; -esac -ARCH=i386 - diff --git a/ld/po/BLD-POTFILES.in b/ld/po/BLD-POTFILES.in index 732cfb9..5de4e8d 100644 --- a/ld/po/BLD-POTFILES.in +++ b/ld/po/BLD-POTFILES.in @@ -220,17 +220,12 @@ ehppaelf.c ehppalinux.c ehppanbsd.c ehppaobsd.c -ei386aout.c ei386beos.c ei386bsd.c -ei386coff.c ei386go32.c -ei386linux.c ei386lynx.c -ei386mach.c ei386moss.c ei386msdos.c -ei386nbsd.c ei386nto.c ei386pe.c ei386pe_posix.c @@ -299,7 +294,6 @@ ev850.c ev850_rh850.c evanilla.c evaxnbsd.c -evsta.c exgateelf.c ez80.c ez8001.c diff --git a/ld/scripttempl/i386coff.sc b/ld/scripttempl/i386coff.sc deleted file mode 100644 index 7dd82b2..0000000 --- a/ld/scripttempl/i386coff.sc +++ /dev/null @@ -1,57 +0,0 @@ -# Linker script for 386 COFF. This works on SVR3.2 and SCO Unix 3.2.2. -# Ian Taylor <ian@cygnus.com>. -# -# Copyright (C) 2014-2018 Free Software Foundation, Inc. -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. - -test -z "$ENTRY" && ENTRY=_start -# These are substituted in as variables in order to get '}' in a shell -# conditional expansion. -INIT='.init : { *(.init) }' -FINI='.fini : { *(.fini) }' - -cat <<EOF -/* Copyright (C) 2014-2018 Free Software Foundation, Inc. - - Copying and distribution of this script, with or without modification, - are permitted in any medium without royalty provided the copyright - notice and this notice are preserved. */ - -OUTPUT_FORMAT("${OUTPUT_FORMAT}") -${LIB_SEARCH_DIRS} - -${RELOCATING+ENTRY (${ENTRY})} - -SECTIONS -{ - .text ${RELOCATING+ SIZEOF_HEADERS} : { - ${RELOCATING+ *(.init)} - *(.text) - ${RELOCATING+ *(.fini)} - ${RELOCATING+ etext = .}; - } - .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : { - *(.data) - ${RELOCATING+ edata = .}; - } - .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : - { - *(.bss) - *(COMMON) - ${RELOCATING+ end = .}; - } - ${RELOCATING- ${INIT}} - ${RELOCATING- ${FINI}} - .stab 0 ${RELOCATING+(NOLOAD)} : - { - [ .stab ] - } - .stabstr 0 ${RELOCATING+(NOLOAD)} : - { - [ .stabstr ] - } -} -EOF diff --git a/ld/testsuite/ld-discard/discard.exp b/ld/testsuite/ld-discard/discard.exp index 1a9a38e..34ab564 100644 --- a/ld/testsuite/ld-discard/discard.exp +++ b/ld/testsuite/ld-discard/discard.exp @@ -33,11 +33,6 @@ if { ![istarget *-*-linux*] return } -if { [istarget *-*-linux*aout*] - || [istarget *-*-linux*oldld*] } { - return -} - load_lib ld-lib.exp set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]] diff --git a/ld/testsuite/ld-elf/binutils.exp b/ld/testsuite/ld-elf/binutils.exp index 290f158..4db5ec0 100644 --- a/ld/testsuite/ld-elf/binutils.exp +++ b/ld/testsuite/ld-elf/binutils.exp @@ -29,11 +29,6 @@ if { ![istarget *-*-linux*] return } -if { [istarget *-*-linux*aout*] - || [istarget *-*-linux*oldld*] } { - return -} - # The optional test_name argument provides a mechanism for the caller # to hardwire the test name. This is important if ld_options contains # absolute path names because the default test name is constructed @@ -166,10 +161,8 @@ binutils_test strip "-z relro -shared" relro1 binutils_test objcopy "-z relro" relro1 binutils_test objcopy "-z relro -shared" relro1 if { ([istarget "i?86-*-elf*"] - || (([istarget "i?86-*-linux*"] - || [istarget "i?86-*-gnu*"]) - && ![istarget "*-*-*aout*"] - && ![istarget "*-*-*oldld*"]) + || [istarget "i?86-*-linux*"] + || [istarget "i?86-*-gnu*"] || [istarget "x86_64-*-linux*"] || [istarget "amd64-*-linux*"] || [istarget "i?86-*nacl*"] diff --git a/ld/testsuite/ld-elf/tls.exp b/ld/testsuite/ld-elf/tls.exp index de5a86b..8a82a06 100644 --- a/ld/testsuite/ld-elf/tls.exp +++ b/ld/testsuite/ld-elf/tls.exp @@ -27,11 +27,6 @@ if { ![istarget *-*-linux*] return } -if { [istarget *-*-linux*aout*] - || [istarget *-*-linux*oldld*] } { - return -} - # Check to see if the C compiler works. if { [which $CC] == 0 } { return diff --git a/ld/testsuite/ld-elf/tls_common.exp b/ld/testsuite/ld-elf/tls_common.exp index ce3ec90..c31a257 100644 --- a/ld/testsuite/ld-elf/tls_common.exp +++ b/ld/testsuite/ld-elf/tls_common.exp @@ -29,11 +29,6 @@ if { ![istarget *-*-linux*] return } -if { [istarget *-*-linux*aout*] - || [istarget *-*-linux*oldld*] } { - return -} - global as global ld global READELF diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index acf5bfd..12a6a07 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -59,11 +59,6 @@ if { ![istarget hppa*64*-*-hpux*] return } -if { [istarget *-*-linux*aout*] - || [istarget *-*-linux*oldld*] } { - return -} - if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } { return } diff --git a/ld/testsuite/ld-elfvsb/elfvsb.exp b/ld/testsuite/ld-elfvsb/elfvsb.exp index 2dfe2aa..8769f9a 100644 --- a/ld/testsuite/ld-elfvsb/elfvsb.exp +++ b/ld/testsuite/ld-elfvsb/elfvsb.exp @@ -49,11 +49,6 @@ if { ![istarget hppa*64*-*-hpux*] \ return } -if { [istarget *-*-linux*aout*] \ - || [istarget *-*-linux*oldld*] } { - return -} - set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]] foreach t $test_list { # We need to strip the ".d", but can leave the dirname. diff --git a/ld/testsuite/ld-elfweak/elfweak.exp b/ld/testsuite/ld-elfweak/elfweak.exp index d827901..211c3a0 100644 --- a/ld/testsuite/ld-elfweak/elfweak.exp +++ b/ld/testsuite/ld-elfweak/elfweak.exp @@ -55,12 +55,6 @@ if { ![istarget alpha*-*-linux*] && ![istarget *-*-nacl*] } { return } - -if { [istarget *-*-linux*aout*] - || [istarget *-*-linux*oldld*] } { - return -} - if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } { return } diff --git a/ld/testsuite/ld-gc/abi-note.d b/ld/testsuite/ld-gc/abi-note.d index d796ccc..4e79bbb 100644 --- a/ld/testsuite/ld-gc/abi-note.d +++ b/ld/testsuite/ld-gc/abi-note.d @@ -2,7 +2,6 @@ #ld: --gc-sections -e _start #readelf: -S --wide #target: *-*-linux* *-*-gnu* -#notarget: *-*-*aout *-*-*oldld #... .* .note.ABI-tag[ ]+NOTE.* diff --git a/ld/testsuite/ld-gc/pr19167.d b/ld/testsuite/ld-gc/pr19167.d index b8e37be..cce41a3 100644 --- a/ld/testsuite/ld-gc/pr19167.d +++ b/ld/testsuite/ld-gc/pr19167.d @@ -3,7 +3,7 @@ #ld: --gc-sections -e _start #objdump: -s -j _foo #target: *-*-linux* *-*-gnu* -#notarget: *-*-*aout *-*-*oldld frv-*-linux* metag-*-linux* +#notarget: frv-*-linux* metag-*-linux* #... Contents of section _foo: diff --git a/ld/testsuite/ld-gc/pr20022.d b/ld/testsuite/ld-gc/pr20022.d index 40473c2..5f91a2a 100644 --- a/ld/testsuite/ld-gc/pr20022.d +++ b/ld/testsuite/ld-gc/pr20022.d @@ -2,8 +2,7 @@ #ld: --gc-sections -e _start tmpdir/pr20022.so #readelf: -SsW #target: *-*-linux* *-*-gnu* -#notarget: *-*-*aout *-*-*oldld frv-*-linux* metag-*-linux* -#notarget: mips*-*-* +#notarget: frv-*-linux* metag-*-linux* mips*-*-* # Skip on targets without dynamic relocations in .text section. #... diff --git a/ld/testsuite/ld-gc/start.d b/ld/testsuite/ld-gc/start.d index 18e74c1..6950b06 100644 --- a/ld/testsuite/ld-gc/start.d +++ b/ld/testsuite/ld-gc/start.d @@ -2,7 +2,7 @@ #ld: --gc-sections -e _start #nm: -n #target: *-*-linux* *-*-gnu* -#notarget: *-*-*aout *-*-*oldld frv-*-linux* metag-*-linux* +#notarget: frv-*-linux* metag-*-linux* #... [0-9a-f]+ D +__start__foo diff --git a/ld/testsuite/ld-gc/stop.d b/ld/testsuite/ld-gc/stop.d index f8a32d6..bea0961 100644 --- a/ld/testsuite/ld-gc/stop.d +++ b/ld/testsuite/ld-gc/stop.d @@ -2,7 +2,7 @@ #ld: --gc-sections -e _start #nm: -n #target: *-*-linux* *-*-gnu* -#notarget: *-*-*aout *-*-*oldld frv-*-linux* metag-*-linux* +#notarget: frv-*-linux* metag-*-linux* #failif #... diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index 243c0a5..0d50b63 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -99,10 +99,8 @@ if [istarget "*-*-go32*"] { } if { !([istarget "i?86-*-elf*"] - || (([istarget "i?86-*-linux*"] - || [istarget "i?86-*-gnu*"]) - && ![istarget "*-*-*aout*"] - && ![istarget "*-*-*oldld*"]) + || [istarget "i?86-*-linux*"] + || [istarget "i?86-*-gnu*"] || [istarget "i?86-*-nacl*"] || [istarget "x86_64-*-nacl*"] || [istarget "x86_64-*-linux*"] diff --git a/ld/testsuite/ld-ifunc/binutils.exp b/ld/testsuite/ld-ifunc/binutils.exp index a9e7afe..a065e6a 100644 --- a/ld/testsuite/ld-ifunc/binutils.exp +++ b/ld/testsuite/ld-ifunc/binutils.exp @@ -25,10 +25,8 @@ # STT_GNU_IFUNC symbols. if { !([istarget "i?86-*-elf*"] - || (([istarget "i?86-*-linux*"] - || [istarget "i?86-*-gnu*"]) - && ![istarget "*-*-*aout*"] - && ![istarget "*-*-*oldld*"]) + || [istarget "i?86-*-linux*"] + || [istarget "i?86-*-gnu*"] || [istarget "i?86-*-nacl*"] || [istarget "x86_64-*-nacl*"] || [istarget "x86_64-*-linux*"] diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp index 6eec579..d9cc381 100644 --- a/ld/testsuite/ld-ifunc/ifunc.exp +++ b/ld/testsuite/ld-ifunc/ifunc.exp @@ -33,10 +33,8 @@ if {!(([istarget "i?86-*-*"] || [istarget "s390*-*-*"]) && ([istarget "*-*-elf*"] || [istarget "*-*-nacl*"] - || (([istarget "*-*-linux*"] - || [istarget "*-*-gnu*"]) - && ![istarget "*-*-*aout*"] - && ![istarget "*-*-*oldld*"]))) } { + || [istarget "*-*-linux*"] + || [istarget "*-*-gnu*"])) } { verbose "IFUNC tests not run - target does not support IFUNC" return } diff --git a/ld/testsuite/ld-linkonce/linkonce.exp b/ld/testsuite/ld-linkonce/linkonce.exp index c0b71a4..3e3730c 100644 --- a/ld/testsuite/ld-linkonce/linkonce.exp +++ b/ld/testsuite/ld-linkonce/linkonce.exp @@ -32,11 +32,6 @@ if { ![istarget *-*-linux*] \ return } -if { [istarget *-*-linux*aout*] \ - || [istarget *-*-linux*oldld*] } { - return -} - load_lib ld-lib.exp set rd_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]] diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp index 19aec3f..c0b7b1c 100644 --- a/ld/testsuite/ld-plugin/lto.exp +++ b/ld/testsuite/ld-plugin/lto.exp @@ -494,9 +494,8 @@ if { [at_least_gcc_version 4 7] } { # Since the asm symbol name hack in pr12365b.c doesn't work on all # targets, run PR ld/12365 tests only for known targets. if { ([istarget "i?86-*-elf*"] - || (([istarget "i?86-*-linux*"] || [istarget "i?86-*-gnu*"]) - && ![istarget "*-*-*aout*"] - && ![istarget "*-*-*oldld*"]) + || [istarget "i?86-*-linux*"] + || [istarget "i?86-*-gnu*"] || [istarget "i?86-*-nacl*"] || [istarget "x86_64-*-nacl*"] || [istarget "x86_64-*-linux*"] diff --git a/ld/testsuite/ld-scripts/empty-address-2a.d b/ld/testsuite/ld-scripts/empty-address-2a.d index 5155041..5c4f330 100644 --- a/ld/testsuite/ld-scripts/empty-address-2a.d +++ b/ld/testsuite/ld-scripts/empty-address-2a.d @@ -1,7 +1,7 @@ #source: empty-address-2.s #ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2a.t #nm: -n -#notarget: frv-*-*linux* *-*-linux*aout *-*-linux*oldld +#notarget: frv-*-*linux* #... 0+0 T _start #... diff --git a/ld/testsuite/ld-scripts/empty-address-2b.d b/ld/testsuite/ld-scripts/empty-address-2b.d index 22f6e26..861ef36 100644 --- a/ld/testsuite/ld-scripts/empty-address-2b.d +++ b/ld/testsuite/ld-scripts/empty-address-2b.d @@ -1,7 +1,7 @@ #source: empty-address-2.s #ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2b.t #nm: -n -#notarget: frv-*-*linux* *-*-linux*aout *-*-linux*oldld +#notarget: frv-*-*linux* #... 0+0 T _start #... diff --git a/ld/testsuite/ld-scripts/phdrs2.exp b/ld/testsuite/ld-scripts/phdrs2.exp index a4d1ff4..ac76db4 100644 --- a/ld/testsuite/ld-scripts/phdrs2.exp +++ b/ld/testsuite/ld-scripts/phdrs2.exp @@ -32,11 +32,6 @@ if { ![istarget *-*-sysv4*] \ return } -if { [istarget *-*-linux*aout*] \ - || [istarget *-*-linux*oldld*] } { - return -} - # This is a very simplistic test. set testname "PHDRS2" diff --git a/ld/testsuite/ld-scripts/section-match-1.d b/ld/testsuite/ld-scripts/section-match-1.d index 519f7cd..a30608e 100644 --- a/ld/testsuite/ld-scripts/section-match-1.d +++ b/ld/testsuite/ld-scripts/section-match-1.d @@ -1,7 +1,7 @@ #source: section-match-1.s #ld: -T section-match-1.t #objdump: -s -#notarget: *-*-osf* *-*-aix* *-*-pe *-*-*aout *-*-*oldld *-*-ecoff *-*-netbsd *-*-vms h8300-*-* tic30-*-* +#notarget: *-*-osf* *-*-aix* *-*-pe *-*-*aout *-*-ecoff *-*-netbsd *-*-vms h8300-*-* tic30-*-* # This test uses arbitrary section names, which are not support by some # file formts. Also these section names must be present in the # output, not translated into some other name, eg .text diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp index d4b0c6a..ea28fc8 100644 --- a/ld/testsuite/ld-shared/shared.exp +++ b/ld/testsuite/ld-shared/shared.exp @@ -61,11 +61,6 @@ if { ![istarget hppa*64*-*-hpux*] \ return } -if { [istarget *-*-linux*aout*] \ - || [istarget *-*-linux*oldld*] } { - return -} - set tmpdir tmpdir set SHCFLAG "" set shared_needs_pic "no" diff --git a/ld/testsuite/ld-size/size.exp b/ld/testsuite/ld-size/size.exp index 705e988..2ff92c1 100644 --- a/ld/testsuite/ld-size/size.exp +++ b/ld/testsuite/ld-size/size.exp @@ -21,16 +21,14 @@ # -# Size relications have only been implemented for the ix86 and x86_64, +# Size relocations have only been implemented for the ix86 and x86_64, # so far. if {!(([istarget "i?86-*-*"] || [istarget "x86_64-*-*"]) && ([istarget "*-*-elf*"] || [istarget "*-*-nacl*"] - || (([istarget "*-*-linux*"] - || [istarget "*-*-gnu*"]) - && ![istarget "*-*-*aout*"] - && ![istarget "*-*-*oldld*"]))) } { + || [istarget "*-*-linux*"] + || [istarget "*-*-gnu*"])) } { verbose "Size relocations tests not run - no target support" return } diff --git a/ld/testsuite/ld-sparc/sparc.exp b/ld/testsuite/ld-sparc/sparc.exp index 41aa2e6..3d30037 100644 --- a/ld/testsuite/ld-sparc/sparc.exp +++ b/ld/testsuite/ld-sparc/sparc.exp @@ -52,9 +52,7 @@ if {[istarget "sparc-*-vxworks"]} { if { !([istarget "sparc*-*-elf*"] || [istarget "sparc*-sun-solaris*"] - || ([istarget "sparc*-*-linux*"] - && ![istarget "*-*-*aout*"] - && ![istarget "*-*-*oldld*"])) } { + || [istarget "sparc*-*-linux*"]) } { return } |