Rename elf32.em to elf.em
authorAlan Modra <amodra@gmail.com>
Tue, 10 Sep 2019 02:57:29 +0000 (12:27 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 11 Sep 2019 04:15:18 +0000 (13:45 +0930)
* emultempl/elf32.em: Remove "misnamed" comment.  Rename to..
* emultempl/elf.em: ..this.
* configure.ac (elf_list_options): Adjust TEMPLATE_NAME grep.
* emulparams/aarch64cloudabi.sh (TEMPLATE_NAME): Set to elf.
* emulparams/aarch64elf.sh: Likewise.
* emulparams/aarch64elf32.sh: Likewise.
* emulparams/aarch64fbsd.sh: Likewise.
* emulparams/aarch64linux.sh: Likewise.
* emulparams/aarch64linux32.sh: Likewise.
* emulparams/arcelf.sh: Likewise.
* emulparams/arcelf_prof.sh: Likewise.
* emulparams/arclinux.sh: Likewise.
* emulparams/arclinux_prof.sh: Likewise.
* emulparams/arcv2elf.sh: Likewise.
* emulparams/arcv2elfx.sh: Likewise.
* emulparams/armelf.sh: Likewise.
* emulparams/armelf_fuchsia.sh: Likewise.
* emulparams/armelf_linux.sh: Likewise.
* emulparams/armelf_phoenix.sh: Likewise.
* emulparams/armnto.sh: Likewise.
* emulparams/avr1.sh: Likewise.
* emulparams/avr2.sh: Likewise.
* emulparams/avr25.sh: Likewise.
* emulparams/avr3.sh: Likewise.
* emulparams/avr31.sh: Likewise.
* emulparams/avr35.sh: Likewise.
* emulparams/avr4.sh: Likewise.
* emulparams/avr5.sh: Likewise.
* emulparams/avr51.sh: Likewise.
* emulparams/avr6.sh: Likewise.
* emulparams/avrtiny.sh: Likewise.
* emulparams/avrxmega1.sh: Likewise.
* emulparams/avrxmega2.sh: Likewise.
* emulparams/avrxmega3.sh: Likewise.
* emulparams/avrxmega4.sh: Likewise.
* emulparams/avrxmega5.sh: Likewise.
* emulparams/avrxmega6.sh: Likewise.
* emulparams/avrxmega7.sh: Likewise.
* emulparams/criself.sh: Likewise.
* emulparams/crislinux.sh: Likewise.
* emulparams/cskyelf.sh: Likewise.
* emulparams/d10velf.sh: Likewise.
* emulparams/elf32_sparc.sh: Likewise.
* emulparams/elf32_spu.sh: Likewise.
* emulparams/elf32_tic6x_le.sh: Likewise.
* emulparams/elf32_x86_64.sh: Likewise.
* emulparams/elf32am33lin.sh: Likewise.
* emulparams/elf32bfin.sh: Likewise.
* emulparams/elf32bfinfd.sh: Likewise.
* emulparams/elf32bmip.sh: Likewise.
* emulparams/elf32bmipn32-defs.sh: Likewise.
* emulparams/elf32cr16.sh: Likewise.
* emulparams/elf32cr16c.sh: Likewise.
* emulparams/elf32crx.sh: Likewise.
* emulparams/elf32epiphany.sh: Likewise.
* emulparams/elf32epiphany_4x4.sh: Likewise.
* emulparams/elf32frvfd.sh: Likewise.
* emulparams/elf32ip2k.sh: Likewise.
* emulparams/elf32lm32.sh: Likewise.
* emulparams/elf32lm32fd.sh: Likewise.
* emulparams/elf32lriscv-defs.sh: Likewise.
* emulparams/elf32m32c.sh: Likewise.
* emulparams/elf32mb_linux.sh: Likewise.
* emulparams/elf32mbel_linux.sh: Likewise.
* emulparams/elf32mcore.sh: Likewise.
* emulparams/elf32mep.sh: Likewise.
* emulparams/elf32metag.sh: Likewise.
* emulparams/elf32microblaze.sh: Likewise.
* emulparams/elf32mipswindiss.sh: Likewise.
* emulparams/elf32or1k.sh: Likewise.
* emulparams/elf32ppccommon.sh: Likewise.
* emulparams/elf32rl78.sh: Likewise.
* emulparams/elf32rx.sh: Likewise.
* emulparams/elf32tilegx.sh: Likewise.
* emulparams/elf32tilepro.sh: Likewise.
* emulparams/elf32vax.sh: Likewise.
* emulparams/elf32visium.sh: Likewise.
* emulparams/elf32xc16x.sh: Likewise.
* emulparams/elf32xc16xl.sh: Likewise.
* emulparams/elf32xc16xs.sh: Likewise.
* emulparams/elf32xstormy16.sh: Likewise.
* emulparams/elf32xtensa.sh: Likewise.
* emulparams/elf64_aix.sh: Likewise.
* emulparams/elf64_ia64.sh: Likewise.
* emulparams/elf64_s390.sh: Likewise.
* emulparams/elf64_sparc.sh: Likewise.
* emulparams/elf64alpha.sh: Likewise.
* emulparams/elf64bpf.sh: Likewise.
* emulparams/elf64hppa.sh: Likewise.
* emulparams/elf64mmix.sh: Likewise.
* emulparams/elf64rdos.sh: Likewise.
* emulparams/elf64tilegx.sh: Likewise.
* emulparams/elf_i386.sh: Likewise.
* emulparams/elf_i386_be.sh: Likewise.
* emulparams/elf_i386_ldso.sh: Likewise.
* emulparams/elf_i386_vxworks.sh: Likewise.
* emulparams/elf_iamcu.sh: Likewise.
* emulparams/elf_k1om.sh: Likewise.
* emulparams/elf_l1om.sh: Likewise.
* emulparams/elf_s390.sh: Likewise.
* emulparams/elf_x86_64.sh: Likewise.
* emulparams/h8300elf.sh: Likewise.
* emulparams/h8300elf_linux.sh: Likewise.
* emulparams/hppa64linux.sh: Likewise.
* emulparams/hppaelf.sh: Likewise.
* emulparams/hppalinux.sh: Likewise.
* emulparams/i386lynx.sh: Likewise.
* emulparams/i386moss.sh: Likewise.
* emulparams/i386nto.sh: Likewise.
* emulparams/m32relf.sh: Likewise.
* emulparams/m32relf_linux.sh: Likewise.
* emulparams/m68hc11elf.sh: Likewise.
* emulparams/m68hc11elfb.sh: Likewise.
* emulparams/m68hc12elf.sh: Likewise.
* emulparams/m68hc12elfb.sh: Likewise.
* emulparams/m68kelf.sh: Likewise.
* emulparams/mn10300.sh: Likewise.
* emulparams/nds32elf.sh: Likewise.
* emulparams/nds32elf16m.sh: Likewise.
* emulparams/nds32elf_linux.sh: Likewise.
* emulparams/nios2elf.sh: Likewise.
* emulparams/nios2linux.sh: Likewise.
* emulparams/pruelf.sh: Likewise.
* emulparams/score3_elf.sh: Likewise.
* emulparams/shelf.sh: Likewise.
* emulparams/shelf_nto.sh: Likewise.
* emulparams/shelf_vxworks.sh: Likewise.
* emulparams/shlelf_linux.sh: Likewise.
* emulparams/shlelf_nto.sh: Likewise.
* emulparams/v850.sh: Likewise.
* emulparams/v850_rh850.sh: Likewise.
* ldelf.c: Update comment.
* ldelf.h: Likewise.
* emultempl/aarch64elf.em: Likewise.
* emultempl/alphaelf.em: Likewise.
* emultempl/arclinux.em: Likewise.
* emultempl/armelf.em: Likewise.
* emultempl/avrelf.em: Likewise.
* emultempl/bfin.em: Likewise.
* emultempl/cr16elf.em: Likewise.
* emultempl/crxelf.em: Likewise.
* emultempl/cskyelf.em: Likewise.
* emultempl/elf-generic.em: Likewise.
* emultempl/elf-x86.em: Likewise.
* emultempl/epiphanyelf_4x4.em: Likewise.
* emultempl/hppaelf.em: Likewise.
* emultempl/ia64elf.em: Likewise.
* emultempl/m68hc1xelf.em: Likewise.
* emultempl/m68kelf.em: Likewise.
* emultempl/metagelf.em: Likewise.
* emultempl/mmix-elfnmmo.em: Likewise.
* emultempl/mmixelf.em: Likewise.
* emultempl/mmo.em: Likewise.
* emultempl/needrelax.em: Likewise.
* emultempl/nios2elf.em: Likewise.
* emultempl/ppc32elf.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/pruelf.em: Likewise.
* emultempl/rxelf.em: Likewise.
* emultempl/scoreelf.em: Likewise.
* emultempl/spuelf.em: Likewise.
* emultempl/tic6xdsbt.em: Likewise.
* emultempl/v850elf.em: Likewise.
* emultempl/vms.em: Likewise.
* emultempl/vxworks.em: Likewise.
* emultempl/xtensaelf.em: Likewise.
* scripttempl/arclinux.sc: Likewise.
* scripttempl/armbpabi.sc: Likewise.
* scripttempl/elf.sc: Likewise.
* scripttempl/elf64bpf.sc: Likewise.
* scripttempl/elf64hppa.sc: Likewise.
* scripttempl/elf_chaos.sc: Likewise.
* scripttempl/elfarc.sc: Likewise.
* scripttempl/elfarcv2.sc: Likewise.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfm68hc11.sc: Likewise.
* scripttempl/elfm68hc12.sc: Likewise.
* scripttempl/elfm9s12z.sc: Likewise.
* scripttempl/elfxgate.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
* scripttempl/epiphany_4x4.sc: Likewise.
* scripttempl/iq2000.sc: Likewise.
* scripttempl/mep.sc: Likewise.
* scripttempl/nds32elf.sc: Likewise.
* scripttempl/v850.sc: Likewise.
* scripttempl/v850_rh850.sc: Likewise.
* scripttempl/xstormy16.sc: Likewise.
* testsuite/ld-arm/arm-dyn.ld: Likewise.
* testsuite/ld-arm/arm-lib.ld: Likewise.
* testsuite/ld-arm/arm-no-rel-plt.ld: Likewise.
* testsuite/ld-arm/fdpic-main.ld: Likewise.
* testsuite/ld-arm/fdpic-shared.ld: Likewise.
* testsuite/ld-elf/elf.exp: Likewise.
* testsuite/ld-elf/orphan-region.d: Likewise.
* testsuite/ld-elf/orphan.d: Likewise.
* testsuite/ld-elf/pr349.d: Likewise.
* testsuite/ld-elf/warn2.d: Likewise.
* testsuite/ld-elfvsb/elf-offset.ld: Likewise.
* testsuite/ld-mips-elf/mips-dyn.ld: Likewise.
* testsuite/ld-mips-elf/mips-lib.ld: Likewise.
* testsuite/ld-scripts/dynamic-sections.t: Likewise.
* testsuite/ld-shared/elf-offset.ld: Likewise.
* configure: Regenerate.

204 files changed:
ld/ChangeLog
ld/configure
ld/configure.ac
ld/emulparams/aarch64cloudabi.sh
ld/emulparams/aarch64elf.sh
ld/emulparams/aarch64elf32.sh
ld/emulparams/aarch64fbsd.sh
ld/emulparams/aarch64linux.sh
ld/emulparams/aarch64linux32.sh
ld/emulparams/arcelf.sh
ld/emulparams/arcelf_prof.sh
ld/emulparams/arclinux.sh
ld/emulparams/arclinux_prof.sh
ld/emulparams/arcv2elf.sh
ld/emulparams/arcv2elfx.sh
ld/emulparams/armelf.sh
ld/emulparams/armelf_fuchsia.sh
ld/emulparams/armelf_linux.sh
ld/emulparams/armelf_phoenix.sh
ld/emulparams/armnto.sh
ld/emulparams/avr1.sh
ld/emulparams/avr2.sh
ld/emulparams/avr25.sh
ld/emulparams/avr3.sh
ld/emulparams/avr31.sh
ld/emulparams/avr35.sh
ld/emulparams/avr4.sh
ld/emulparams/avr5.sh
ld/emulparams/avr51.sh
ld/emulparams/avr6.sh
ld/emulparams/avrtiny.sh
ld/emulparams/avrxmega1.sh
ld/emulparams/avrxmega2.sh
ld/emulparams/avrxmega3.sh
ld/emulparams/avrxmega4.sh
ld/emulparams/avrxmega5.sh
ld/emulparams/avrxmega6.sh
ld/emulparams/avrxmega7.sh
ld/emulparams/criself.sh
ld/emulparams/crislinux.sh
ld/emulparams/cskyelf.sh
ld/emulparams/d10velf.sh
ld/emulparams/elf32_sparc.sh
ld/emulparams/elf32_spu.sh
ld/emulparams/elf32_tic6x_le.sh
ld/emulparams/elf32_x86_64.sh
ld/emulparams/elf32am33lin.sh
ld/emulparams/elf32bfin.sh
ld/emulparams/elf32bfinfd.sh
ld/emulparams/elf32bmip.sh
ld/emulparams/elf32bmipn32-defs.sh
ld/emulparams/elf32cr16.sh
ld/emulparams/elf32cr16c.sh
ld/emulparams/elf32crx.sh
ld/emulparams/elf32epiphany.sh
ld/emulparams/elf32epiphany_4x4.sh
ld/emulparams/elf32frvfd.sh
ld/emulparams/elf32ip2k.sh
ld/emulparams/elf32lm32.sh
ld/emulparams/elf32lm32fd.sh
ld/emulparams/elf32lriscv-defs.sh
ld/emulparams/elf32m32c.sh
ld/emulparams/elf32mb_linux.sh
ld/emulparams/elf32mbel_linux.sh
ld/emulparams/elf32mcore.sh
ld/emulparams/elf32mep.sh
ld/emulparams/elf32metag.sh
ld/emulparams/elf32microblaze.sh
ld/emulparams/elf32mipswindiss.sh
ld/emulparams/elf32or1k.sh
ld/emulparams/elf32ppccommon.sh
ld/emulparams/elf32rl78.sh
ld/emulparams/elf32rx.sh
ld/emulparams/elf32tilegx.sh
ld/emulparams/elf32tilepro.sh
ld/emulparams/elf32vax.sh
ld/emulparams/elf32visium.sh
ld/emulparams/elf32xc16x.sh
ld/emulparams/elf32xc16xl.sh
ld/emulparams/elf32xc16xs.sh
ld/emulparams/elf32xstormy16.sh
ld/emulparams/elf32xtensa.sh
ld/emulparams/elf64_aix.sh
ld/emulparams/elf64_ia64.sh
ld/emulparams/elf64_s390.sh
ld/emulparams/elf64_sparc.sh
ld/emulparams/elf64alpha.sh
ld/emulparams/elf64bpf.sh
ld/emulparams/elf64hppa.sh
ld/emulparams/elf64mmix.sh
ld/emulparams/elf64rdos.sh
ld/emulparams/elf64tilegx.sh
ld/emulparams/elf_i386.sh
ld/emulparams/elf_i386_be.sh
ld/emulparams/elf_i386_ldso.sh
ld/emulparams/elf_i386_vxworks.sh
ld/emulparams/elf_iamcu.sh
ld/emulparams/elf_k1om.sh
ld/emulparams/elf_l1om.sh
ld/emulparams/elf_s390.sh
ld/emulparams/elf_x86_64.sh
ld/emulparams/h8300elf.sh
ld/emulparams/h8300elf_linux.sh
ld/emulparams/hppa64linux.sh
ld/emulparams/hppaelf.sh
ld/emulparams/hppalinux.sh
ld/emulparams/i386lynx.sh
ld/emulparams/i386moss.sh
ld/emulparams/i386nto.sh
ld/emulparams/m32relf.sh
ld/emulparams/m32relf_linux.sh
ld/emulparams/m68hc11elf.sh
ld/emulparams/m68hc11elfb.sh
ld/emulparams/m68hc12elf.sh
ld/emulparams/m68hc12elfb.sh
ld/emulparams/m68kelf.sh
ld/emulparams/mn10300.sh
ld/emulparams/nds32elf.sh
ld/emulparams/nds32elf16m.sh
ld/emulparams/nds32elf_linux.sh
ld/emulparams/nios2elf.sh
ld/emulparams/nios2linux.sh
ld/emulparams/pruelf.sh
ld/emulparams/score3_elf.sh
ld/emulparams/shelf.sh
ld/emulparams/shelf_nto.sh
ld/emulparams/shelf_vxworks.sh
ld/emulparams/shlelf_linux.sh
ld/emulparams/shlelf_nto.sh
ld/emulparams/v850.sh
ld/emulparams/v850_rh850.sh
ld/emultempl/aarch64elf.em
ld/emultempl/alphaelf.em
ld/emultempl/arclinux.em
ld/emultempl/armelf.em
ld/emultempl/avrelf.em
ld/emultempl/bfin.em
ld/emultempl/cr16elf.em
ld/emultempl/crxelf.em
ld/emultempl/cskyelf.em
ld/emultempl/elf-generic.em
ld/emultempl/elf-x86.em
ld/emultempl/elf.em [new file with mode: 0644]
ld/emultempl/elf32.em [deleted file]
ld/emultempl/epiphanyelf_4x4.em
ld/emultempl/hppaelf.em
ld/emultempl/ia64elf.em
ld/emultempl/m68hc1xelf.em
ld/emultempl/m68kelf.em
ld/emultempl/metagelf.em
ld/emultempl/mmix-elfnmmo.em
ld/emultempl/mmixelf.em
ld/emultempl/mmo.em
ld/emultempl/needrelax.em
ld/emultempl/nios2elf.em
ld/emultempl/ppc32elf.em
ld/emultempl/ppc64elf.em
ld/emultempl/pruelf.em
ld/emultempl/rxelf.em
ld/emultempl/scoreelf.em
ld/emultempl/spuelf.em
ld/emultempl/tic6xdsbt.em
ld/emultempl/v850elf.em
ld/emultempl/vms.em
ld/emultempl/vxworks.em
ld/emultempl/xtensaelf.em
ld/ldelf.c
ld/ldelf.h
ld/scripttempl/arclinux.sc
ld/scripttempl/armbpabi.sc
ld/scripttempl/elf.sc
ld/scripttempl/elf64bpf.sc
ld/scripttempl/elf64hppa.sc
ld/scripttempl/elf_chaos.sc
ld/scripttempl/elfarc.sc
ld/scripttempl/elfarcv2.sc
ld/scripttempl/elfd10v.sc
ld/scripttempl/elfm68hc11.sc
ld/scripttempl/elfm68hc12.sc
ld/scripttempl/elfm9s12z.sc
ld/scripttempl/elfxgate.sc
ld/scripttempl/elfxtensa.sc
ld/scripttempl/epiphany_4x4.sc
ld/scripttempl/iq2000.sc
ld/scripttempl/mep.sc
ld/scripttempl/nds32elf.sc
ld/scripttempl/v850.sc
ld/scripttempl/v850_rh850.sc
ld/scripttempl/xstormy16.sc
ld/testsuite/ld-arm/arm-dyn.ld
ld/testsuite/ld-arm/arm-lib.ld
ld/testsuite/ld-arm/arm-no-rel-plt.ld
ld/testsuite/ld-arm/fdpic-main.ld
ld/testsuite/ld-arm/fdpic-shared.ld
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/orphan-region.d
ld/testsuite/ld-elf/orphan.d
ld/testsuite/ld-elf/pr349.d
ld/testsuite/ld-elf/warn2.d
ld/testsuite/ld-elfvsb/elf-offset.ld
ld/testsuite/ld-mips-elf/mips-dyn.ld
ld/testsuite/ld-mips-elf/mips-lib.ld
ld/testsuite/ld-scripts/dynamic-sections.t
ld/testsuite/ld-shared/elf-offset.ld

index 18d2c051d4290262695bc3eb420cc803feb754b0..ca12975e948e3949ef5b41947147203d77ce0e0f 100644 (file)
@@ -1,3 +1,209 @@
+2019-09-11  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/elf32.em: Remove "misnamed" comment.  Rename to..
+       * emultempl/elf.em: ..this.
+       * configure.ac (elf_list_options): Adjust TEMPLATE_NAME grep.
+       * emulparams/aarch64cloudabi.sh (TEMPLATE_NAME): Set to elf.
+       * emulparams/aarch64elf.sh: Likewise.
+       * emulparams/aarch64elf32.sh: Likewise.
+       * emulparams/aarch64fbsd.sh: Likewise.
+       * emulparams/aarch64linux.sh: Likewise.
+       * emulparams/aarch64linux32.sh: Likewise.
+       * emulparams/arcelf.sh: Likewise.
+       * emulparams/arcelf_prof.sh: Likewise.
+       * emulparams/arclinux.sh: Likewise.
+       * emulparams/arclinux_prof.sh: Likewise.
+       * emulparams/arcv2elf.sh: Likewise.
+       * emulparams/arcv2elfx.sh: Likewise.
+       * emulparams/armelf.sh: Likewise.
+       * emulparams/armelf_fuchsia.sh: Likewise.
+       * emulparams/armelf_linux.sh: Likewise.
+       * emulparams/armelf_phoenix.sh: Likewise.
+       * emulparams/armnto.sh: Likewise.
+       * emulparams/avr1.sh: Likewise.
+       * emulparams/avr2.sh: Likewise.
+       * emulparams/avr25.sh: Likewise.
+       * emulparams/avr3.sh: Likewise.
+       * emulparams/avr31.sh: Likewise.
+       * emulparams/avr35.sh: Likewise.
+       * emulparams/avr4.sh: Likewise.
+       * emulparams/avr5.sh: Likewise.
+       * emulparams/avr51.sh: Likewise.
+       * emulparams/avr6.sh: Likewise.
+       * emulparams/avrtiny.sh: Likewise.
+       * emulparams/avrxmega1.sh: Likewise.
+       * emulparams/avrxmega2.sh: Likewise.
+       * emulparams/avrxmega3.sh: Likewise.
+       * emulparams/avrxmega4.sh: Likewise.
+       * emulparams/avrxmega5.sh: Likewise.
+       * emulparams/avrxmega6.sh: Likewise.
+       * emulparams/avrxmega7.sh: Likewise.
+       * emulparams/criself.sh: Likewise.
+       * emulparams/crislinux.sh: Likewise.
+       * emulparams/cskyelf.sh: Likewise.
+       * emulparams/d10velf.sh: Likewise.
+       * emulparams/elf32_sparc.sh: Likewise.
+       * emulparams/elf32_spu.sh: Likewise.
+       * emulparams/elf32_tic6x_le.sh: Likewise.
+       * emulparams/elf32_x86_64.sh: Likewise.
+       * emulparams/elf32am33lin.sh: Likewise.
+       * emulparams/elf32bfin.sh: Likewise.
+       * emulparams/elf32bfinfd.sh: Likewise.
+       * emulparams/elf32bmip.sh: Likewise.
+       * emulparams/elf32bmipn32-defs.sh: Likewise.
+       * emulparams/elf32cr16.sh: Likewise.
+       * emulparams/elf32cr16c.sh: Likewise.
+       * emulparams/elf32crx.sh: Likewise.
+       * emulparams/elf32epiphany.sh: Likewise.
+       * emulparams/elf32epiphany_4x4.sh: Likewise.
+       * emulparams/elf32frvfd.sh: Likewise.
+       * emulparams/elf32ip2k.sh: Likewise.
+       * emulparams/elf32lm32.sh: Likewise.
+       * emulparams/elf32lm32fd.sh: Likewise.
+       * emulparams/elf32lriscv-defs.sh: Likewise.
+       * emulparams/elf32m32c.sh: Likewise.
+       * emulparams/elf32mb_linux.sh: Likewise.
+       * emulparams/elf32mbel_linux.sh: Likewise.
+       * emulparams/elf32mcore.sh: Likewise.
+       * emulparams/elf32mep.sh: Likewise.
+       * emulparams/elf32metag.sh: Likewise.
+       * emulparams/elf32microblaze.sh: Likewise.
+       * emulparams/elf32mipswindiss.sh: Likewise.
+       * emulparams/elf32or1k.sh: Likewise.
+       * emulparams/elf32ppccommon.sh: Likewise.
+       * emulparams/elf32rl78.sh: Likewise.
+       * emulparams/elf32rx.sh: Likewise.
+       * emulparams/elf32tilegx.sh: Likewise.
+       * emulparams/elf32tilepro.sh: Likewise.
+       * emulparams/elf32vax.sh: Likewise.
+       * emulparams/elf32visium.sh: Likewise.
+       * emulparams/elf32xc16x.sh: Likewise.
+       * emulparams/elf32xc16xl.sh: Likewise.
+       * emulparams/elf32xc16xs.sh: Likewise.
+       * emulparams/elf32xstormy16.sh: Likewise.
+       * emulparams/elf32xtensa.sh: Likewise.
+       * emulparams/elf64_aix.sh: Likewise.
+       * emulparams/elf64_ia64.sh: Likewise.
+       * emulparams/elf64_s390.sh: Likewise.
+       * emulparams/elf64_sparc.sh: Likewise.
+       * emulparams/elf64alpha.sh: Likewise.
+       * emulparams/elf64bpf.sh: Likewise.
+       * emulparams/elf64hppa.sh: Likewise.
+       * emulparams/elf64mmix.sh: Likewise.
+       * emulparams/elf64rdos.sh: Likewise.
+       * emulparams/elf64tilegx.sh: Likewise.
+       * emulparams/elf_i386.sh: Likewise.
+       * emulparams/elf_i386_be.sh: Likewise.
+       * emulparams/elf_i386_ldso.sh: Likewise.
+       * emulparams/elf_i386_vxworks.sh: Likewise.
+       * emulparams/elf_iamcu.sh: Likewise.
+       * emulparams/elf_k1om.sh: Likewise.
+       * emulparams/elf_l1om.sh: Likewise.
+       * emulparams/elf_s390.sh: Likewise.
+       * emulparams/elf_x86_64.sh: Likewise.
+       * emulparams/h8300elf.sh: Likewise.
+       * emulparams/h8300elf_linux.sh: Likewise.
+       * emulparams/hppa64linux.sh: Likewise.
+       * emulparams/hppaelf.sh: Likewise.
+       * emulparams/hppalinux.sh: Likewise.
+       * emulparams/i386lynx.sh: Likewise.
+       * emulparams/i386moss.sh: Likewise.
+       * emulparams/i386nto.sh: Likewise.
+       * emulparams/m32relf.sh: Likewise.
+       * emulparams/m32relf_linux.sh: Likewise.
+       * emulparams/m68hc11elf.sh: Likewise.
+       * emulparams/m68hc11elfb.sh: Likewise.
+       * emulparams/m68hc12elf.sh: Likewise.
+       * emulparams/m68hc12elfb.sh: Likewise.
+       * emulparams/m68kelf.sh: Likewise.
+       * emulparams/mn10300.sh: Likewise.
+       * emulparams/nds32elf.sh: Likewise.
+       * emulparams/nds32elf16m.sh: Likewise.
+       * emulparams/nds32elf_linux.sh: Likewise.
+       * emulparams/nios2elf.sh: Likewise.
+       * emulparams/nios2linux.sh: Likewise.
+       * emulparams/pruelf.sh: Likewise.
+       * emulparams/score3_elf.sh: Likewise.
+       * emulparams/shelf.sh: Likewise.
+       * emulparams/shelf_nto.sh: Likewise.
+       * emulparams/shelf_vxworks.sh: Likewise.
+       * emulparams/shlelf_linux.sh: Likewise.
+       * emulparams/shlelf_nto.sh: Likewise.
+       * emulparams/v850.sh: Likewise.
+       * emulparams/v850_rh850.sh: Likewise.
+       * ldelf.c: Update comment.
+       * ldelf.h: Likewise.
+       * emultempl/aarch64elf.em: Likewise.
+       * emultempl/alphaelf.em: Likewise.
+       * emultempl/arclinux.em: Likewise.
+       * emultempl/armelf.em: Likewise.
+       * emultempl/avrelf.em: Likewise.
+       * emultempl/bfin.em: Likewise.
+       * emultempl/cr16elf.em: Likewise.
+       * emultempl/crxelf.em: Likewise.
+       * emultempl/cskyelf.em: Likewise.
+       * emultempl/elf-generic.em: Likewise.
+       * emultempl/elf-x86.em: Likewise.
+       * emultempl/epiphanyelf_4x4.em: Likewise.
+       * emultempl/hppaelf.em: Likewise.
+       * emultempl/ia64elf.em: Likewise.
+       * emultempl/m68hc1xelf.em: Likewise.
+       * emultempl/m68kelf.em: Likewise.
+       * emultempl/metagelf.em: Likewise.
+       * emultempl/mmix-elfnmmo.em: Likewise.
+       * emultempl/mmixelf.em: Likewise.
+       * emultempl/mmo.em: Likewise.
+       * emultempl/needrelax.em: Likewise.
+       * emultempl/nios2elf.em: Likewise.
+       * emultempl/ppc32elf.em: Likewise.
+       * emultempl/ppc64elf.em: Likewise.
+       * emultempl/pruelf.em: Likewise.
+       * emultempl/rxelf.em: Likewise.
+       * emultempl/scoreelf.em: Likewise.
+       * emultempl/spuelf.em: Likewise.
+       * emultempl/tic6xdsbt.em: Likewise.
+       * emultempl/v850elf.em: Likewise.
+       * emultempl/vms.em: Likewise.
+       * emultempl/vxworks.em: Likewise.
+       * emultempl/xtensaelf.em: Likewise.
+       * scripttempl/arclinux.sc: Likewise.
+       * scripttempl/armbpabi.sc: Likewise.
+       * scripttempl/elf.sc: Likewise.
+       * scripttempl/elf64bpf.sc: Likewise.
+       * scripttempl/elf64hppa.sc: Likewise.
+       * scripttempl/elf_chaos.sc: Likewise.
+       * scripttempl/elfarc.sc: Likewise.
+       * scripttempl/elfarcv2.sc: Likewise.
+       * scripttempl/elfd10v.sc: Likewise.
+       * scripttempl/elfm68hc11.sc: Likewise.
+       * scripttempl/elfm68hc12.sc: Likewise.
+       * scripttempl/elfm9s12z.sc: Likewise.
+       * scripttempl/elfxgate.sc: Likewise.
+       * scripttempl/elfxtensa.sc: Likewise.
+       * scripttempl/epiphany_4x4.sc: Likewise.
+       * scripttempl/iq2000.sc: Likewise.
+       * scripttempl/mep.sc: Likewise.
+       * scripttempl/nds32elf.sc: Likewise.
+       * scripttempl/v850.sc: Likewise.
+       * scripttempl/v850_rh850.sc: Likewise.
+       * scripttempl/xstormy16.sc: Likewise.
+       * testsuite/ld-arm/arm-dyn.ld: Likewise.
+       * testsuite/ld-arm/arm-lib.ld: Likewise.
+       * testsuite/ld-arm/arm-no-rel-plt.ld: Likewise.
+       * testsuite/ld-arm/fdpic-main.ld: Likewise.
+       * testsuite/ld-arm/fdpic-shared.ld: Likewise.
+       * testsuite/ld-elf/elf.exp: Likewise.
+       * testsuite/ld-elf/orphan-region.d: Likewise.
+       * testsuite/ld-elf/orphan.d: Likewise.
+       * testsuite/ld-elf/pr349.d: Likewise.
+       * testsuite/ld-elf/warn2.d: Likewise.
+       * testsuite/ld-elfvsb/elf-offset.ld: Likewise.
+       * testsuite/ld-mips-elf/mips-dyn.ld: Likewise.
+       * testsuite/ld-mips-elf/mips-lib.ld: Likewise.
+       * testsuite/ld-scripts/dynamic-sections.t: Likewise.
+       * testsuite/ld-shared/elf-offset.ld: Likewise.
+       * configure: Regenerate.
+
 2019-09-11  Alan Modra  <amodra@gmail.com>
 
        * Makefile.am (ALL_EMUL_EXTRA_OFILES): Add ldelf and ldelfgen.
index 3b50f5db8ebd7d34b49e0b8ec98fbb8660696523..8edef4548e341539e7fd823d61797d7acf15c9c7 100755 (executable)
@@ -17522,7 +17522,7 @@ tdir_$i=$result"
            elf_list_options=TRUE
            ;;
          *)
-           if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
+           if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
              elf_list_options=TRUE
            fi
            ;;
index ee62d10ac58f7a5cc4683c35c370e1db1dcee684..41a51bbb7e95f78ef09092808a6ca857af48e4b1 100644 (file)
@@ -378,7 +378,7 @@ tdir_$i=$result"
            elf_list_options=TRUE
            ;;
          *)
-           if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
+           if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
              elf_list_options=TRUE
            fi
            ;;
index 983a92b50eb910e027fece62f39912dc2087fc08..0e6f83481606f6d375f3d566e3f0c73410da6f43 100644 (file)
@@ -9,7 +9,7 @@ BIG_OUTPUT_FORMAT="elf64-bigaarch64-cloudabi"
 LITTLE_OUTPUT_FORMAT="elf64-littleaarch64-cloudabi"
 NO_REL_RELOCS=yes
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=aarch64elf
 
 GENERATE_SHLIB_SCRIPT=yes
index 4a5934272257c39873ceccd1cf044378b8675606..8f68e517b455df42feada69748069e759dea3bed 100644 (file)
@@ -9,7 +9,7 @@ BIG_OUTPUT_FORMAT="elf64-bigaarch64"
 LITTLE_OUTPUT_FORMAT="elf64-littleaarch64"
 NO_REL_RELOCS=yes
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=aarch64elf
 
 GENERATE_SHLIB_SCRIPT=yes
index 38bcd4bbb0df3d0a25fb92072d520ff0f8b0581f..5a08d9e29f1d1376438b2449698835cf76073799 100644 (file)
@@ -9,7 +9,7 @@ BIG_OUTPUT_FORMAT="elf32-bigaarch64"
 LITTLE_OUTPUT_FORMAT="elf32-littleaarch64"
 NO_REL_RELOCS=yes
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=aarch64elf
 
 GENERATE_SHLIB_SCRIPT=yes
index 3a7a2e18aa95cb452d9ec3f643e2df1ac87f119b..0bcab7a4baa7d9abe2f0c648f87628a268947739 100644 (file)
@@ -9,7 +9,7 @@ BIG_OUTPUT_FORMAT="elf64-bigaarch64"
 LITTLE_OUTPUT_FORMAT="elf64-littleaarch64"
 NO_REL_RELOCS=yes
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=aarch64elf
 
 GENERATE_SHLIB_SCRIPT=yes
index 5df6ae18d810152110fb7e84050850b41fa92024..7b4a0e860738fc1c3fdedcdec2f010506b18edd9 100644 (file)
@@ -9,7 +9,7 @@ BIG_OUTPUT_FORMAT="elf64-bigaarch64"
 LITTLE_OUTPUT_FORMAT="elf64-littleaarch64"
 NO_REL_RELOCS=yes
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=aarch64elf
 
 GENERATE_SHLIB_SCRIPT=yes
index 3c60de0cac1ff3ca6c00a61bbcf6790763e61609..3e75d1492e6890be10f69b8d3fe5fcb65b49368a 100644 (file)
@@ -9,7 +9,7 @@ BIG_OUTPUT_FORMAT="elf32-bigaarch64"
 LITTLE_OUTPUT_FORMAT="elf32-littleaarch64"
 NO_REL_RELOCS=yes
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=aarch64elf
 
 GENERATE_SHLIB_SCRIPT=yes
index 875df7e0b313acf685571f955e36c8c4294c70c2..625ec3977900773c25e597c0e7f4a1e1343f4436 100644 (file)
@@ -1,6 +1,6 @@
 source_sh ${srcdir}/emulparams/arc-endianness.sh
 SCRIPT_NAME=elfarc
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 if [ "x${ARC_ENDIAN}" = "xbig" ]; then
   OUTPUT_FORMAT="elf32-bigarc"
 else
index 74e9604eca8fe12df9916f85e89fe6fde74f3992..cd0176991475ea06270350fcf120e642c3f1fe42 100644 (file)
@@ -1,6 +1,6 @@
 source_sh ${srcdir}/emulparams/arc-endianness.sh
 SCRIPT_NAME=elfarc
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 if [ "x${ARC_ENDIAN}" = "xbig" ]; then
   OUTPUT_FORMAT="elf32-bigarc"
 else
index d34281921506c72bdc57f0c0afd890e84e64ef2a..3a7347314ae43ff44755cefbe235fe625ee51625 100644 (file)
@@ -12,7 +12,7 @@ TEXT_START_ADDR=0x10000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ENTRY=__start
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=arclinux
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index fbbf20d15f873445c3dbba3028078716a2c0887f..da5ab405fb8ae7636479024d2ce6d5f4b61bd934 100644 (file)
@@ -14,7 +14,7 @@ NONPAGED_TEXT_START_ADDR=0x10000
 ARCH=arc
 MACHINE=
 ENTRY=__start
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=arclinux
 GENERATE_SHLIB_SCRIPT=yes
 SDATA_START_SYMBOLS='__SDATA_BEGIN__ = .;'
index 4b0cf553a6ccd2b9225d72229ddbccebd5a32ba4..4824f3540c827410ca4cf114a1a04749bf7fd5fc 100644 (file)
@@ -17,7 +17,7 @@ ARCH=arc
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 EMBEDDED=yes
 GENERIC_BOARD=no
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 LITTLE_OUTPUT_FORMAT="elf32-littlearc"
 BIG_OUTPUT_FORMAT="elf32-bigarc"
 TEXT_START_ADDR=0x100
index cfe7ea022a1c813c52c07a34b68a5ebb44ec4850..ad134441255d0ef3d691153c998fbd085829a35a 100644 (file)
@@ -13,7 +13,7 @@ SDATA_MEMORY=sdata
 ARCH=arc
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 GENERIC_BOARD=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 LITTLE_OUTPUT_FORMAT="elf32-littlearc"
 BIG_OUTPUT_FORMAT="elf32-bigarc"
 TEXT_START_ADDR=0x100
index d46e0bdbff77684c850703648972c3d1d7f5fd86..0e3147c1f243a64cce4f05a0016aee8180fb6594 100644 (file)
@@ -4,7 +4,7 @@ OUTPUT_FORMAT="elf32-littlearm"
 BIG_OUTPUT_FORMAT="elf32-bigarm"
 LITTLE_OUTPUT_FORMAT="elf32-littlearm"
 TEXT_START_ADDR=0x8000
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=armelf
 OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)'
 OTHER_BSS_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__bss_start__ = .${CREATE_SHLIB+)};"
index 36392f1163bf4bc52468bb1869d725ae37e189f9..823ddf503cf9540ec5faea7d0b494c18983b7d4d 100644 (file)
@@ -5,7 +5,7 @@ BIG_OUTPUT_FORMAT="elf32-bigarm"
 LITTLE_OUTPUT_FORMAT="elf32-littlearm"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=armelf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index d726d63eb37c4f5687fed75f4739f1101901c3b9..e9439c4620b9602aa4e29ad9426c0275a67279c2 100644 (file)
@@ -5,7 +5,7 @@ BIG_OUTPUT_FORMAT="elf32-bigarm"
 LITTLE_OUTPUT_FORMAT="elf32-littlearm"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=armelf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 7fb1e2d36326f509ff7ff7f8a12bb77e22cd5f7a..63c35a8290b53139b24a8e86afe8a748196ff449 100644 (file)
@@ -5,7 +5,7 @@ BIG_OUTPUT_FORMAT="elf32-bigarm"
 LITTLE_OUTPUT_FORMAT="elf32-littlearm"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=armelf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 79be9995bda3bbbc48628fb4ff3b1457b90e57ec..f0d7b33273d6206d8310a8a4df794f478f2f5329 100644 (file)
@@ -4,7 +4,7 @@ OUTPUT_FORMAT="elf32-littlearm"
 BIG_OUTPUT_FORMAT="elf32-bigarm"
 LITTLE_OUTPUT_FORMAT="elf32-littlearm"
 TEXT_START_ADDR=0x00100000
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=armelf
 OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)'
 OTHER_BSS_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__bss_start__ = .${CREATE_SHLIB+)};"
index 0fa6eedfe2f786e599a94feb5e7ee691565684dd..f3992483d2f8337c0b340dae17f2a04732ce6767 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=8K
 DATA_ORIGIN=0x800060
index e0bdc21a6fd4e8b07bc8b44e6a23055144e0abfc..4c70ff06182442c1ba506fb6f9ba06f0e1c7c628 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=8K
 DATA_ORIGIN=0x800060
index 4a6e0a38ce9ae6529e0f3439cd43220baca73f7f..703a3ae25ef6f5fbc5fe20f7b4dcad356ff02d3d 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=8K
 DATA_ORIGIN=0x800060
index f02dd39dc42e2e498712c0e447df61cc16cdf53f..4cbc91727a4415082fdcb1702c45077dc1cda33e 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=128K
 DATA_ORIGIN=0x800060
index 0bf3c0fe3e189cbfd31b77a91c62008afd1745cf..287d71e787d67767a9dc90eced64e021e0a0d775 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=128K
 DATA_ORIGIN=0x800060
index fe83dc865726df9f3c1e60aa7985a9c59e431d22..c40e0e191647729d72654b8d079efc014f847423 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=64K
 DATA_ORIGIN=0x800060
index ccda23fd93e5618f499408c1ae29f7ad6f38c18c..79adbcc7ae47eae67b4b9e7b891a34480618c403 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=8K
 DATA_ORIGIN=0x800060
index 64e9d66de43894a8cfe0cc9350f49d7bbd8ecb32..6eedf17d9fae0881cbe6d40f6ce94f1d9d82fbaa 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=128K
 DATA_ORIGIN=0x800060
index b097771465ad5fb38fd110a22ca54eefd9d56a93..1856e625bebbfd65b9e956cf23c68f025ea94c18 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=128K
 DATA_ORIGIN=0x800100
index 10efa6f1baeb14fda5207decd1a891dcb0cd25a0..5b9d167964c5db8b65544dc9fcf4d8fe8b5cf069 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=1024K
 DATA_ORIGIN=0x800200
index 4aca22b0849338c5be09f307bf9ce69706c1ce74..434cd9f6e9e7cc3c51676ceac3401c7303447339 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=4K
 DATA_ORIGIN=0x0800040
index 722ee180537ea9908b19ebeac4635c0a39400b23..66b0e8544af4463402bbba7fa45aa4b50b4f29f4 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=1024K
 DATA_ORIGIN=0x802000
index d9211b23bc0bf760a81362740b8e8852992b647f..3f3d86518de981e82f79434ce014c8372e5a46b8 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=1024K
 DATA_ORIGIN=0x802000
index b33f895ba8022718c38aca3e773532e6da98b5bc..e4a25635db7b8cf8ec0ca71ac789fb0294be1a0b 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=1024K
 DATA_ORIGIN=0x802000
index 02ef7d72299e7ab9923c9f31138b2d37bdce11e1..d7b377135eeacd996cf2e95c6e8e0ff1dc283117 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=1024K
 DATA_ORIGIN=0x802000
index 93b69da81dcc0de02a57553144bb64d13e2c5403..8de5d6e959199101c8a6a4e905b1156ef5e176cc 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=1024K
 DATA_ORIGIN=0x802000
index f7dae40f2d999bad9413c6a71c8b97682ea82411..de282e584e022d504a96f50cc30af7085cdbeea5 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=1024K
 DATA_ORIGIN=0x802000
index 578f52a7693e3de1736fc0e8cc257139895c31de..5abc148209314dc7bd117cf930aece4d81043b18 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=avr
 OUTPUT_FORMAT="elf32-avr"
 MAXPAGESIZE=1
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 TEXT_LENGTH=1024K
 DATA_ORIGIN=0x802000
index 5ea928425ec5d90c4262e6249a421187573b4cdc..94ef1cd62489cab5366d4072bdbd219f47e5254f 100644 (file)
@@ -1,7 +1,7 @@
 # This is for embedded products (no MMU) with ELF.
 MACHINE=
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 # Symbols have underscore prepended.
 OUTPUT_FORMAT="elf32-us-cris"
index c072dbae2bcc51d68da8c42be12eaaf19eaa2e18..31b746e9478de873c4412209867a266a4c15020f 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-cris"
 NO_REL_RELOCS=yes
 ARCH=cris
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 ENTRY=_start
 
index c9f7e3fa5cf06fdeab8ca3737dd758793057a148..d572ac8b6486c6015d09f0b5d43250c3722c4f5c 100644 (file)
@@ -32,4 +32,4 @@ OTHER_BSS_END_SYMBOLS="__bss_end__ = . ;"
 # This sets the stack to the top of the simulator memory (2^19 bytes).
 # STACK_ADDR=0x80000
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
index c8de5c4a13610e3cdd8892b85fac9cbfe3952697..5eabb693c5dd92ea4b563c599969f0e05c55f4fa 100644 (file)
@@ -6,4 +6,4 @@ READONLY_START_ADDR=0x02000004
 ARCH=d10v
 MAXPAGESIZE=32
 EMBEDDED=t
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
index 13af316de1d004e0d42efcccc16e0721aab0ed58..0ba6b8d86edf3dd6045080d69d714366a6acd0e1 100644 (file)
@@ -10,7 +10,7 @@ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ALIGNMENT=8
 ARCH=sparc
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 DATA_PLT=
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 235455f8b9686044327a125443e64a1a82918ad4..523f32330266dd3b627bf5d0b99b4b2259a7eab0 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=spuelf
 OUTPUT_FORMAT="elf32-spu"
 NO_REL_RELOCS=yes
index 62ea9eb920f1aaa8992203b67e09f89c9c82eb44..7bf7bf1ddf6b89d8669883818585d6baf55c08e5 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-tic6x-le"
 BIG_OUTPUT_FORMAT="elf32-tic6x-be"
 EXTRA_EM_FILE=tic6xdsbt
index 43f2519108dedbb2197bb6f54d67b13bc13e944f..249553aaac1c832f3480db3e10f97ea5b91f6f87 100644 (file)
@@ -13,7 +13,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH="i386:x64-32"
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index b34d2b8751e20f6e98e4dfbc08031dbde4b9fbe0..e63c349d734749c3662a370c5ea79722d10aee9b 100644 (file)
@@ -6,6 +6,6 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=mn10300
 MACHINE=
 NOP=0xcbcb
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 
index 6c0bb4090b8992bf35112dad399952339aaf3929..8d298b467c9e4ef766396473e40ec10161486676 100644 (file)
@@ -5,7 +5,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 TARGET_PAGE_SIZE=0x1000
 ARCH=bfin
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 EMBEDDED=yes
 USER_LABEL_PREFIX=_
index b4114b1417d31224b8e16ba73496670116e6a10e..c2a12ff7a60ceee22d04da73ade56d7a278e53f3 100644 (file)
@@ -2,7 +2,7 @@ source_sh ${srcdir}/emulparams/elf32bfin.sh
 unset STACK_ADDR
 OUTPUT_FORMAT="elf32-bfinfdpic"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 EMBEDDED= # This gets us program headers mapped as part of the text segment.
index 1e0200a73b6ff062b2412d713c254800e1d24b4d..992d45469fd49289d34e5a608817592d791c1817 100644 (file)
@@ -73,7 +73,7 @@ OTHER_SECTIONS="
 "
 ARCH=mips
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=mipself
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 80dce8fbeae9b2ae12217424a6843c26f846cfac..44f817b0cf73bace21f5d8540468031bb12140dd 100644 (file)
@@ -10,7 +10,7 @@ OUTPUT_FORMAT="elf32-bigmips"
 BIG_OUTPUT_FORMAT="elf32-bigmips"
 LITTLE_OUTPUT_FORMAT="elf32-littlemips"
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=mipself
 
 # Note: use "x$var" not x"$var" in case directive in order to work around bug in bash 4.2
index bc9ae51bdca7c73f9e97b2c68c12dbb260eb72fb..4718b1bf08744a481a1116a23dfc765d0445815c 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf32cr16
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-cr16"
 ARCH=cr16
 ENTRY=_start
index e78e5edc7fa6ae1c21ce7667e0a8c81a04101491..986d84df5bbfd00671449eeefd56541eb99999b4 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf32cr16c
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-cr16c"
 ARCH=cr16c
 ENTRY=_start
index 24960ec52c9ea9e4e091f6d9d6fe365fa4e78787..d57b3ce8b8ae0078091575e7a8f674abf75954e4 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf32crx
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-crx"
 ARCH=crx
 ENTRY=_start
index fd2401296c11495e011141ce67524150214a7bd8..6267d741ef4f946336b2ab2f2e52b9ee8b752b81 100644 (file)
@@ -1,4 +1,4 @@
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 MACHINE=
 SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-epiphany"
index be03d40c01322816a4c2bbd88ad702706c01ae57..d80438d4225f3f57a1824a5a339da0f9069f6893 100644 (file)
@@ -2,7 +2,7 @@ MACHINE=
 SCRIPT_NAME=epiphany_4x4
 OUTPUT_FORMAT="elf32-epiphany"
 TEXT_START_ADDR=0x40
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=epiphanyelf_4x4
 OTHER_TEXT_SECTIONS=
 OTHER_BSS_SYMBOLS=
index c9f1d6273e3c728f45b1852d5263a504761a5cb4..420dea471f3271e48aeca687267f49f8cf948ca2 100644 (file)
@@ -2,7 +2,7 @@ source_sh ${srcdir}/emulparams/elf32frv.sh
 unset STACK_ADDR
 OUTPUT_FORMAT="elf32-frvfdpic"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 unset EXTRA_EM_FILE
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 0db227fe3a2f05bf317d878188c4f5ddfb8a037d..e8cfec11a72708b0844d64c558e08a8b91c25811 100644 (file)
@@ -1,4 +1,4 @@
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 MACHINE=
 SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-ip2k"
index b3fcd321406e4c7902f5f9b474590f47514d2e77..0db2a4f8dfb86d2c5c635953a20c28f9fe43f74f 100644 (file)
@@ -4,7 +4,7 @@ SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-lm32"
 MAXPAGESIZE=0x1000
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 TEXT_START_ADDR=0x0000
 DYNAMIC_LINK=FALSE
 ALIGNMENT=4
index edbea49b6a30072fde77cb7ec63b2cf7a4761254..0be3378df384cf6862e953ff5ab2a29027d5c274 100644 (file)
@@ -3,7 +3,7 @@ unset STACK_ADDR
 unset DYNAMIC_LINK
 OUTPUT_FORMAT="elf32-lm32fdpic"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 EMBEDDED= # This gets us program headers mapped as part of the text segment.
index 5ac3b6023dc1e6a8b7cb3637b21d5b4d675cbbed..bc464918e5cb5d68f4b09d1c22bdcfb510fece43 100644 (file)
@@ -3,7 +3,7 @@ SCRIPT_NAME=elf
 ARCH=riscv
 NO_REL_RELOCS=yes
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=riscvelf
 
 ELFSIZE=32
index cd2b700a18d340e3c850d8661449fe943dd48070..b77c0cc79b2471f1f48c264b4848a258c879f64c 100644 (file)
@@ -6,7 +6,7 @@ TEXT_START_ADDR=0x2000
 ARCH=m32c
 ENTRY=_start
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=needrelax
 ELFSIZE=32
 MAXPAGESIZE=256
index ccb633ebe05da1dd4809365af9cf4f12941a53f6..01963752f4bf91d18283933d735cb644b315ed7e 100644 (file)
@@ -11,7 +11,7 @@ ARCH=microblaze
 
 NOP=0x80000000
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 NO_SMALL_DATA=yes
index 2980e820772901e3a4dc56977339fe362078da5b..61b47613bc8eaafb39182a70c84cd1f8431f40d9 100644 (file)
@@ -11,7 +11,7 @@ ARCH=microblaze
 
 NOP=0x80000000
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 NO_SMALL_DATA=yes
index ee988129c46a1a0f34fee1259807862847781cba..88a8cb6e70b26e4a9ca70e4bb49aad2821a7bb47 100644 (file)
@@ -26,7 +26,7 @@ OTHER_BSS_END_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__bss_end__ = .${CREATE_SHLIB+)}
 # This sets the stack to the top of the simulator memory (2^19 bytes).
 STACK_ADDR=0x80000
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 # This code gets inserted into the generic elf32.sc linker script
 # and allows us to define our own command line switches.
index 7d93abab1ea0a02f7161045494401e982b86fb81..f960916b17fc795ae6e5f12c2900474708ad369c 100644 (file)
@@ -6,7 +6,7 @@ ARCH=mep
 MAXPAGESIZE=256
 ENTRY=_start
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 
 if test -n "${RELOCATING}"; then
 DATA_START_SYMBOLS='__data_start = . ;'
index 9d71d7a91579d3b9f860bc65d3cef41873f2dbdb..c4cd13c0c9a4ea88fead580673ece16d44f64da5 100644 (file)
@@ -1,6 +1,6 @@
 MACHINE=
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 OUTPUT_FORMAT="elf32-metag"
index 116e37d0705eb3eed3283a3b7d722851e93cafa1..f867018eb38fb72c9c294f4a66fcf5ddf457055f 100644 (file)
@@ -20,7 +20,7 @@ NOP=0x80000000
 #$@{RELOCATING+ PROVIDE (__stack = 0x7000);@}
 #OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = _end + 0x1000);'
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 #GENERATE_SHLIB_SCRIPT=yes
 
 
index b8bb87edebead4033d34d05013600a71605f9a51..9274170f76bff6ba2d30f43de38ca2251b6e3b50 100644 (file)
@@ -1,4 +1,4 @@
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=mipself
 SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-bigmips"
index e8d59b810f9ce621d4f404b8c090ba33f71054df..48d2ecfa2b089765ad101357c36d60e28e4a7627 100644 (file)
@@ -1,6 +1,6 @@
 SCRIPT_NAME=elf
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-or1k"
 NOP=0x15000000
 TEXT_START_ADDR=0x0000
index 2872ca6a162eb184ddde4b1ae1fdd231d83292b7..da892988f5df808f286a826fe69a4125399beb09 100644 (file)
@@ -2,7 +2,7 @@
 # elf32ppc.sh elf32ppcvxworks.sh elf64ppc.sh
 source_sh ${srcdir}/emulparams/dynamic_undefined_weak.sh
 
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 SCRIPT_NAME=elf
index d1a00e185a0e16c637031f44a0ad3d064097c81c..e7ffa7590974c7a6c93d831578105189e01bb90a 100644 (file)
@@ -6,7 +6,7 @@ TEXT_START_ADDR=0x00000
 ARCH=rl78
 ENTRY=_start
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 ELFSIZE=32
 # EXTRA_EM_FILE=needrelax
 MAXPAGESIZE=256
index e139be7196efa357fe8ca757451cae604eb16805..7619fcc1690e4b28cd625480023b53ab4a1c0338 100644 (file)
@@ -6,7 +6,7 @@ TEXT_START_ADDR=0x10000000
 ARCH=rx
 ENTRY=_start
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=rxelf
 # EXTRA_EM_FILE=needrelax
 ELFSIZE=32
index faf3ee0386797f3cbca3137f5efcf590c28eb6ca..53b1a051c1554ad275fe20561803cf4073792f74 100644 (file)
@@ -11,7 +11,7 @@ ARCH=tilegx
 ALIGNMENT=64
 MACHINE=
 NOP=0
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_COMBRELOC_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 01d84bcff38785d56d5f0c36e1cdcad6aa43c257..93bccef4285ccef483e9a1d04340344ed702f5a6 100644 (file)
@@ -12,7 +12,7 @@ ARCH=tilepro
 ALIGNMENT=64
 MACHINE=
 NOP=0
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_COMBRELOC_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 9ddc754c663715766b15ae895b79b72eef9d5c4b..4267f53d4c697e3326b80eca2dd87854ca34419c 100644 (file)
@@ -9,6 +9,6 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=vax
 MACHINE=
 NOP=0x0101
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 NO_SMALL_DATA=yes
index 17cf4b9ba36241857fa64092e12eabf54d33ec09..f362ae3f82cc745ba34fd15cfcf5b07dde5bd956 100644 (file)
@@ -5,5 +5,5 @@ MAXPAGESIZE=0x10000
 NONPAGED_TEXT_START_ADDR=0x10000
 ARCH=visium
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 DYNAMIC_LINK=FALSE
index f88ccee8177ae9c72ffb468023d05f315f003ed4..1f89529be68208646e4de14b2be94cd8165e641f 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf32xc16x
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-xc16x"
 TEXT_START_ADDR=0x00400
 ARCH=xc16x
index 14eb24bec81b806d70427a14c70ee8b538cae62f..98ee128ce3a623a38e9d0937ed5675184f6290a8 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf32xc16xl
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-xc16x"
 TEXT_START_ADDR=0xc00300
 ARCH=xc16x:xc16xl
index 2454963a970ba1e277832d9aa2e6305281c86b52..9c6628f9645bf977fe0c99a0966045d5187c97fc 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf32xc16xs
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-xc16x"
 TEXT_START_ADDR=0xc00300
 ARCH=xc16x:xc16xs
index a512ec3690113f21a240ba5650815d6e8b89a230..b3989a4eb7a30b6107624d062b6255e4b6b5476e 100644 (file)
@@ -1,6 +1,6 @@
 MACHINE=
 SCRIPT_NAME=xstormy16
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=needrelax
 OUTPUT_FORMAT="elf32-xstormy16"
 # See also `include/elf/xstormy16.h'
index d9ccd839210216bf7f2d9ab4769860d28905279c..b3a6a886f3cea3020514205f1b15c1660842a006 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elfxtensa
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=xtensaelf
 OUTPUT_FORMAT=undefined
 BIG_OUTPUT_FORMAT="elf32-xtensa-be"
index 39325f577201d65c4d3c44dcc6120465e9b946f0..9b05bf9a90374738bccddd0f0c659fb8a3d991d3 100644 (file)
@@ -1,7 +1,7 @@
 # See genscripts.sh and ../scripttempl/elf.sc for the meaning of these.
 SCRIPT_NAME=elf
 ELFSIZE=64
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf64-ia64-aix-little"
 ARCH=ia64
 MACHINE=
index 02970a6f038d3bdf90a54883d800350dd00a900b..5f05ccbbba45831df0dd6684c8f0a12949b049a7 100644 (file)
@@ -1,7 +1,7 @@
 # See genscripts.sh and ../scripttempl/elf.sc for the meaning of these.
 SCRIPT_NAME=elf
 ELFSIZE=64
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=ia64elf
 OUTPUT_FORMAT="elf64-ia64-little"
 ARCH=ia64
index 8d02042856944f980af24ae359916f9b6626e1eb..899efd7f532b993b63dee4d896d3bf54e2bf766c 100644 (file)
@@ -8,7 +8,7 @@ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH="s390:64-bit"
 MACHINE=
 NOP=0x07070707
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 GENERATE_RELRO_SCRIPT=yes
index 9397b87dbc68ad1a3e7b60617e036a395f9af5bd..8ae29ad78c0f5f16d88899f6a7507e1b8abeecc2 100644 (file)
@@ -1,6 +1,6 @@
 SCRIPT_NAME=elf
 ELFSIZE=64
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf64-sparc"
 NO_REL_RELOCS=yes
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
index 9a275b73e658563e3d56950f1c8d3fc78639f7f9..1c7d2062259df349acdb647b51bdf794acce605b 100644 (file)
@@ -1,7 +1,7 @@
 ENTRY=_start
 SCRIPT_NAME=elf
 ELFSIZE=64
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=alphaelf
 OUTPUT_FORMAT="elf64-alpha"
 NO_REL_RELOCS=yes
index 94a7580487550ad52dcbcb9119c4dacc56638323..de304fed89281275a7d9fa93a6e378f090357570 100644 (file)
@@ -1,4 +1,4 @@
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 SCRIPT_NAME=elf64bpf
 BIG_OUTPUT_FORMAT="elf64-bpfbe"
 LITTLE_OUTPUT_FORMAT="elf64-bpfle"
index 1ed32f9721daf6ff1fc5dd60d10b7007085fd490..b0b43f7ecde9f5d1f4ea4c17ef31627ce406a6f1 100644 (file)
@@ -17,7 +17,7 @@ SHLIB_DATA_ADDR=0x8000000000001000
 ARCH=hppa
 MACHINE=hppa2.0w
 ENTRY="main"
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 
 # We really want multiple .stub sections, one for each input .text section,
index 6b9173d95d45f933bd4cbe3a86b7c76baf8fd780..dffc6cc6f7d11758b5d29843093e0de0662d1e2c 100644 (file)
@@ -1,4 +1,4 @@
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 ELFSIZE=64
 SCRIPT_NAME=elf
index b4f238595167a0fdab81a1eb93522a91d40356a8..8cf78ea2513beb4763190af7e48d5eab8d7ba419 100644 (file)
@@ -9,7 +9,7 @@ TEXT_START_ADDR=0x180E0000000
 LARGE_DATA_ADDR=0x80020000000
 ARCH="i386:x86-64"
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 51cbef7f3da19a45add823415973d659868979a5..d6957cb33c3c1d66cd6693f906623c65ca0acdb5 100644 (file)
@@ -11,8 +11,7 @@ ARCH=tilegx
 ALIGNMENT=64
 MACHINE=
 NOP=0
-# Note that "elf32.em" actually handles elf64 also.
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_COMBRELOC_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 6f4bc4bc1d7c55a679e3bb4af28e06088d043231..645707ddbdb8304e7af731ed79ff8c346d6d2ea3 100644 (file)
@@ -11,7 +11,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH=i386
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 0d8c834b189d6654ced1e6e4c759157dd6d970f4..dbe68e99e635fde6a7108596605940251bc385b5 100644 (file)
@@ -9,7 +9,7 @@ TEXT_START_ADDR=0x80000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=i386
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 NO_SMALL_DATA=yes
index 6bd85e00bc4897d8f5a02a259ad160cc35046d4c..7ed810e5ac6e8cd37ff0bac6209a0353fc10f10f 100644 (file)
@@ -10,7 +10,7 @@ TEXT_START_ADDR=0x08048000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=i386
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 ELF_INTERPRETER_NAME=\"/usr/lib/ld.so.1\"
 NO_SMALL_DATA=yes
index c4426bceb9a794cebb298fa9f21555a0e9950922..40c809263d132bebee0c804c54e6ccf60d3424c3 100644 (file)
@@ -6,7 +6,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH=i386
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 6882a25dca5b72fc0babdb1497a065b6ea0f294c..1cc07cc720ab0750b6ccfd2248abd7edb6f64c67 100644 (file)
@@ -11,7 +11,7 @@ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH=iamcu
 MACHINE=
 COMPILE_IN=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 6be186e0838e731017a5459a964607c87cc9ced7..6f15bdc0572b91bc89f2a57e352326b8000b53c3 100644 (file)
@@ -12,7 +12,7 @@ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH="k1om"
 MACHINE=
 COMPILE_IN=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index cf831c7418590aa6949f6699f0588ec9304a5040..7348c95787f951f3ee69b0f50ffac85383b4cc9c 100644 (file)
@@ -12,7 +12,7 @@ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH="l1om"
 MACHINE=
 COMPILE_IN=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index f2286ecc16048c6c19b00e06b7c8424a2decd2e0..cb1c6b5b04d187a0470003989fc8d91f93bc2aab 100644 (file)
@@ -7,7 +7,7 @@ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH="s390:31-bit"
 MACHINE=
 NOP=0x07070707
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 NO_SMALL_DATA=yes
index 0034a8b926f1108d3913510127059dbb2a91d86a..2b34941986ec920598c42e86d8fb0981c3f6d85c 100644 (file)
@@ -13,7 +13,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH="i386:x86-64"
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index 6db8c216d6785ba843c90850607d52687c9b1ece..45b3458d1ceadf32031e8ba36962574b79de1640 100644 (file)
@@ -8,7 +8,7 @@ TEXT_START_ADDR=0x100
 MAXPAGESIZE=2
 TARGET_PAGE_SIZE=128
 ARCH=h8300
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EMBEDDED=yes
 STACK_ADDR=0xfefc
 TINY_READONLY_SECTION=".tinyrodata :
index 4395cfc4da88b46b538293851dc4668b7e548c5b..3d8c1e482c187ab98baa23b04c64740b0e4c501f 100644 (file)
@@ -8,7 +8,7 @@ TEXT_START_ADDR=0x100
 MAXPAGESIZE=2
 TARGET_PAGE_SIZE=128
 ARCH=h8300
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EMBEDDED=yes
 STACK_ADDR=0xfefc
 TINY_READONLY_SECTION=".tinyrodata :
index d86fdf6ddf0ac0ef4778fdbbe3707cee94f5ba2d..3caad892dbf02945721a6d06540f1681b0ad2229 100644 (file)
@@ -8,7 +8,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=hppa
 MACHINE=hppa2.0w
 ENTRY="main"
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 
 # We really want multiple .stub sections, one for each input .text section,
index 77dcb397736cc367485abd8f16eff4b1ab9be01f..268feec6a0518f2fafdad533230af5b236bd188c 100644 (file)
@@ -5,5 +5,5 @@ TARGET_PAGE_SIZE=0x1000
 ARCH=hppa
 NOP=0x08000240
 START="$START$"
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=hppaelf
index deb07c23dd23744224275521de6cc248b73e2f05..7892df9130dbc3df5e58af215fd20006b195d86d 100644 (file)
@@ -30,5 +30,5 @@ DATA_PLT=
 PLT_BEFORE_GOT=
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=hppaelf
index b86967bd4691e0020004a010fe58ffeb27980e69..59e99d9a4b02c244ef50a680f46b0b76818d24c3 100644 (file)
@@ -12,7 +12,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=i386
 MACHINE=
 NOP=0x9090
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 ELF_INTERPRETER_NAME=\"/usr/lib/ld.so.1\"
index faee222a116b5f33d1b17ae82c058958580b9ad4..8cbc1b99982f2614f33d3841c4c54faafbee24a1 100644 (file)
@@ -6,6 +6,6 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=i386
 MACHINE=
 NOP=0x90909090
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
index ab5f84c8bdb884ce6889379e4e9155b3633c855f..3291412706de4322bea5997759f83d601ac9a1b5 100644 (file)
@@ -7,6 +7,6 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=i386
 MACHINE=
 NOP=0x9090
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
index 947c7a8eae184aa87de31ac17108bb80a1515f8b..d67368b5ccac6cfca3d913ae8aacc5c10bffc3be 100644 (file)
@@ -1,6 +1,6 @@
 MACHINE=
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-m32r"
 TEXT_START_ADDR=0x100
 ARCH=m32r
index 9a4ee9778e94100e3013a05bd117150221b35e89..2fcfe9d9b3ca0d7c101c6446448e679c039ab422 100644 (file)
@@ -1,6 +1,6 @@
 MACHINE=
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-m32r-linux"
 TEXT_START_ADDR=0x1000
 ARCH=m32r
index 1caa6e19288eafae2a8fb54f96cb96089ac47c34..2e3df55dcace27148da4fa55fc39254ca4ff62aa 100644 (file)
@@ -14,5 +14,5 @@ ARCH=m68hc11
 MAXPAGESIZE=32
 EMBEDDED=yes
 GENERIC_BOARD=no
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=m68hc1xelf
index a8f01d246fadbe1cc61f32ec32869d85f372a653..ca0f58e003b2a6db60be26fccc5c1ac8c8d89801 100644 (file)
@@ -7,6 +7,6 @@ EEPROM_MEMORY=eeprom
 ARCH=m68hc11
 MAXPAGESIZE=32
 GENERIC_BOARD=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=m68hc1xelf
 
index c4d74871f1a73e7e2cb247e71b1858d09147f098..03c7c1b8ad42d7677645b6ef5a2e7d2da2e5bb6b 100644 (file)
@@ -14,5 +14,5 @@ ARCH=m68hc12
 MAXPAGESIZE=32
 EMBEDDED=yes
 GENERIC_BOARD=no
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=m68hc1xelf
index acc3ce34d3de9c488ec518f7f601cd358822ab2e..4b234734682574256efb4ed6d438827e9897a726 100644 (file)
@@ -7,6 +7,6 @@ EEPROM_MEMORY=eeprom
 ARCH=m68hc12
 MAXPAGESIZE=32
 GENERIC_BOARD=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=m68hc1xelf
 
index 5c5e672dfc06ad5cdaf7e89779b524c50878ca97..79b3251ebad551f88dd5c3fdbed4675c8b558d83 100644 (file)
@@ -7,7 +7,7 @@ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH=m68k
 MACHINE=
 NOP=0x4e714e71
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=m68kelf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
index ba7a2c4e5f5051a2900c407549dff0b10296483b..a00fd433e59aefc1de7b492c68477f59b63a63bc 100644 (file)
@@ -1,6 +1,6 @@
 source_sh ${srcdir}/emulparams/mn10200.sh
 OUTPUT_FORMAT="elf32-mn10300"
 ARCH=mn10300
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 unset EXTRA_EM_FILE
 GENERATE_SHLIB_SCRIPT=yes
index f0a7c3132945b39cdf3c8aed3d0355913c692d53..c1fc5ed5840175f57d7da7da35fbae4368148d97 100644 (file)
@@ -3,7 +3,7 @@ TEXT_START_ADDR=0x500000
 OTHER_END_SYMBOLS='PROVIDE (_stack = 0x3000000);'
 
 SCRIPT_NAME=nds32elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=nds32elf
 BIG_OUTPUT_FORMAT="elf32-nds32be"
 LITTLE_OUTPUT_FORMAT="elf32-nds32le"
index deb8699004af99aeddc59a7e346eb2730690f641..f149a0fb1b7e8a19fe4261c575e4f5fe38a88bc5 100644 (file)
@@ -3,7 +3,7 @@ TEXT_START_ADDR=0x300000
 OTHER_END_SYMBOLS='PROVIDE (_stack = 0x780000);'
 
 SCRIPT_NAME=nds32elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=nds32elf
 BIG_OUTPUT_FORMAT="elf32-nds32be"
 LITTLE_OUTPUT_FORMAT="elf32-nds32le"
index 1145c0eeea8635c39b0732a7dbff5e1eb37d074a..bf4dcea2cff12f96b8d4424cbf3325cb645442cd 100644 (file)
@@ -2,7 +2,7 @@ DEFAULT_TEXT_START_ADDR=0
 DEFAULT_STACK_START_ADDR=0
 MACHINE=
 SCRIPT_NAME=nds32elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=nds32elf
 BIG_OUTPUT_FORMAT="elf32-nds32be-linux"
 LITTLE_OUTPUT_FORMAT="elf32-nds32le-linux"
index ed7074847422c71ff3a4e44170229766cb879770..9097944947805d69c2cf0c66fc9ddba9131e505c 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=nios2elf
 OUTPUT_FORMAT="elf32-littlenios2"
 LITTLE_OUTPUT_FORMAT="elf32-littlenios2"
index e65425084df3a0fde9233be28fab9b2c1eba69e4..2c04d062b1b30b4f81b519cb741fa6f3018c4fa2 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE="nios2elf"
 OUTPUT_FORMAT="elf32-littlenios2"
 LITTLE_OUTPUT_FORMAT="elf32-littlenios2"
index 02debba764fd1bc66477efcd94ca9dec8c47eb49..48e9a3a3bead107b2c9037ff83d92125ada6e59b 100644 (file)
@@ -1,5 +1,5 @@
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 OUTPUT_FORMAT="elf32-pru"
 LITTLE_OUTPUT_FORMAT="elf32-pru"
 SCRIPT_NAME=pru
index 8fbd47bf8e555c788c4e21d36e8a6134f7c36b26..7be7883363e9af2b026f93237fbdab9ad92a40a6 100644 (file)
@@ -1,6 +1,6 @@
 MACHINE=
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=scoreelf
 OUTPUT_FORMAT="elf32-bigscore"
 BIG_OUTPUT_FORMAT="elf32-bigscore"
index 5b3431949021d6d64cf5ac464bb6c0f5b69a492f..63c2ff19dc924220ddf5ae20ca36ace0ea1237e0 100644 (file)
@@ -8,7 +8,7 @@ TEXT_START_ADDR=0x1000
 MAXPAGESIZE=128
 ARCH=sh
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 EMBEDDED=yes
 # These are for compatibility with the COFF toolchain.
index 1dc5e4652bc1cd3ea0d6a11e41fa8f7172924bf0..8758fd8efd8831d74254c8e3ea0ce3a5797e76ee 100644 (file)
@@ -5,7 +5,7 @@ TEXT_START_ADDR=0x08040000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=sh
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 TEXT_START_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_btext = .${CREATE_SHLIB+)};"
 ENTRY=_start
index 4929c0d53d372ebfd69de65a634516e706ccdee8..c985a98ae4ef94591acf444607192b6845cd2fe2 100644 (file)
@@ -10,7 +10,7 @@ TEXT_START_ADDR=0x1000
 MAXPAGESIZE='CONSTANT (MAXPAGESIZE)'
 ARCH=sh
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 ENTRY=__start
 SYMPREFIX=_
index c14aae228d173337e120c37b7946978e449c6f67..aeb225e6643af112305256cd5964e3d341cfa478 100644 (file)
@@ -9,7 +9,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 ARCH=sh
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 
index ddc4fc6bb5823c868034985b8610f7d1714a5510..4e77a8ce3552caa013cdd7f6419d01e38966330f 100644 (file)
@@ -5,7 +5,7 @@ TEXT_START_ADDR=0x08040000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=sh
 MACHINE=
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 TEXT_START_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_btext = .${CREATE_SHLIB+)};"
 ENTRY=_start
index c2bdda3273683b9eb19f8f67e76e7d48e7b6c6fb..646ca1c04208269d3a2182c0a8b6257764840db8 100644 (file)
@@ -13,4 +13,4 @@ ARCH=v850
 MAXPAGESIZE=256
 ENTRY=_start
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
index febdad3d1844d7d1f2532720a28ae0b791b31509..04ba78c8f6265f2c14040d24796aad7f078f9257 100644 (file)
@@ -13,4 +13,4 @@ ARCH=v850_rh850
 MAXPAGESIZE=256
 ENTRY=_start
 EMBEDDED=yes
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
index 022de0834e3cb0c520ad441eb0f3b4a821e27631..7ffb17e7a9cd87640a0a50d1e3dfbf3b1a442d9c 100644 (file)
@@ -19,7 +19,7 @@
 # see <http://www.gnu.org/licenses/>.
 #
 
-# This file is sourced from elf32.em, and defines extra aarch64-elf
+# This file is sourced from elf.em, and defines extra aarch64-elf
 # specific routines.
 #
 fragment <<EOF
index fbee01f519fae99c54e15daffc8bde5331bb4d28..4e7886fcd612e827565b57a8c63d4ff64ad52a3c 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra alpha
+# This file is sourced from elf.em, and defines extra alpha
 # specific routines.
 #
 fragment <<EOF
index 48b6a616db7460d5ebc7bd651d514a4d6fab9dde..4961917833e386e87dd106464a3d4e9224c2458a 100644 (file)
@@ -20,6 +20,6 @@
 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-# This file is sourced from elf32.em, and defines extra arc-linux
+# This file is sourced from elf.em, and defines extra arc-linux
 # specific routines.
 #
index 29972f14fd735d537414296350cd02a0accb284c..bb32bbbda419b6c44a48a3e0a06c2a5d2466a98b 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra arm-elf
+# This file is sourced from elf.em, and defines extra arm-elf
 # specific routines.
 #
 test -z "$TARGET2_TYPE" && TARGET2_TYPE="rel"
index 3c897cb8047c11d17064dea3bc51504eb797d834..f3d1082287d16cbf1d0c00b8809f1e26a9d01ecd 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 
 
-# This file is sourced from elf32.em, and defines extra avr-elf specific
+# This file is sourced from elf.em, and defines extra avr-elf specific
 # routines.  It is used to generate the trampolines for the avr6 family
 # of devices where one needs to address the issue that it is not possible
 # to reach the whole program memory by using 16 bit pointers.
index d5d9856e96d1afc2357f9976c949d2aeff44bf76..c6b3ae007ddc0ef10b224994c3e9f6ed01bd5174 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra bfin-elf
+# This file is sourced from elf.em, and defines extra bfin-elf
 # specific routines.
 #
 fragment <<EOF
index 6f97d41b7c41c87820d59541427267d8ad22c77d..197f0c6391f90c7395cb0c4abeb4a63a5fa2c7f1 100644 (file)
@@ -20,7 +20,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra cr16-elf
+# This file is sourced from elf.em, and defines extra cr16-elf
 # specific routines.
 #
 fragment <<EOF
index 22bacde2ce29a01a1f1e97c4d5f4ccc7c9f91541..da01c7c0cbb8d6a4a0204119d1f0676293b07ac2 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra crx-elf
+# This file is sourced from elf.em, and defines extra crx-elf
 # specific routines.
 #
 fragment <<EOF
index aaddd9c146c76aaf60a863271b2f5b6383172a93..10d037c80d6c6cbeb3bcac9ca58daa9904b0d602 100644 (file)
@@ -18,7 +18,7 @@
 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-# This file is sourced from elf32.em, and defines extra C-SKY ELF
+# This file is sourced from elf.em, and defines extra C-SKY ELF
 # specific routines.
 #
 fragment <<EOF
index 8392ceac23660ea3b75de5c7b2173623c62ba01f..29af264440cc72d0468393772eb5de8c6d610002 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em and from ELF targets that use
+# This file is sourced from elf.em and from ELF targets that use
 # generic.em.
 #
 fragment <<EOF
index 09780a1e6f575d2a6e780eea98e1b4e9ddbcdb86..bd6aae4aa6e568de598f31080479d454aed75754 100644 (file)
@@ -18,7 +18,7 @@
 # see <http://www.gnu.org/licenses/>.
 #
 
-# This file is sourced from elf32.em, and defines x86 specific routines.
+# This file is sourced from elf.em, and defines x86 specific routines.
 #
 fragment <<EOF
 
diff --git a/ld/emultempl/elf.em b/ld/emultempl/elf.em
new file mode 100644 (file)
index 0000000..5fec4d4
--- /dev/null
@@ -0,0 +1,904 @@
+# This shell script emits a C file. -*- C -*-
+# It does some substitutions.
+test -z "${ELFSIZE}" && ELFSIZE=32
+if [ -z "$MACHINE" ]; then
+  OUTPUT_ARCH=${ARCH}
+else
+  OUTPUT_ARCH=${ARCH}:${MACHINE}
+fi
+fragment <<EOF
+/* This file is is generated by a shell script.  DO NOT EDIT! */
+
+/* ${ELFSIZE} bit ELF emulation code for ${EMULATION_NAME}
+   Copyright (C) 1991-2019 Free Software Foundation, Inc.
+   Written by Steve Chamberlain <sac@cygnus.com>
+   ELF support by Ian Lance Taylor <ian@cygnus.com>
+
+   This file is part of the GNU Binutils.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+   MA 02110-1301, USA.  */
+
+#define TARGET_IS_${EMULATION_NAME}
+
+#include "sysdep.h"
+#include "bfd.h"
+#include "libiberty.h"
+#include "getopt.h"
+#include "bfdlink.h"
+#include "ld.h"
+#include "ldmain.h"
+#include "ldmisc.h"
+#include "ldexp.h"
+#include "ldlang.h"
+#include "ldfile.h"
+#include "ldemul.h"
+#include <ldgram.h>
+#include "elf-bfd.h"
+#include "ldelf.h"
+#include "ldelfgen.h"
+
+/* Declare functions used by various EXTRA_EM_FILEs.  */
+static void gld${EMULATION_NAME}_before_parse (void);
+static void gld${EMULATION_NAME}_after_open (void);
+static void gld${EMULATION_NAME}_before_allocation (void);
+static void gld${EMULATION_NAME}_after_allocation (void);
+EOF
+
+# Import any needed special functions and/or overrides.
+#
+source_em ${srcdir}/emultempl/elf-generic.em
+if test -n "$EXTRA_EM_FILE" ; then
+  source_em ${srcdir}/emultempl/${EXTRA_EM_FILE}.em
+fi
+
+# Functions in this file can be overridden by setting the LDEMUL_* shell
+# variables.  If the name of the overriding function is the same as is
+# defined in this file, then don't output this file's version.
+# If a different overriding name is given then output the standard function
+# as presumably it is called from the overriding function.
+#
+if test x"$LDEMUL_BEFORE_PARSE" != xgld"$EMULATION_NAME"_before_parse; then
+fragment <<EOF
+
+static void
+gld${EMULATION_NAME}_before_parse (void)
+{
+  ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`);
+  input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
+  config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
+  config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
+  link_info.check_relocs_after_open_input = TRUE;
+  link_info.relro = DEFAULT_LD_Z_RELRO;
+  link_info.separate_code = DEFAULT_LD_Z_SEPARATE_CODE;
+}
+
+EOF
+fi
+
+fragment <<EOF
+
+/* These variables are used to implement target options */
+
+static char *audit; /* colon (typically) separated list of libs */
+static char *depaudit; /* colon (typically) separated list of libs */
+
+EOF
+
+if test x"$LDEMUL_AFTER_OPEN" != xgld"$EMULATION_NAME"_after_open; then
+
+  IS_LINUX_TARGET=FALSE
+  IS_FREEBSD_TARGET=FALSE
+  case ${target} in
+    *-*-linux-* | *-*-k*bsd*-* | *-*-gnu*)
+      IS_LINUX_TARGET=TRUE ;;
+    *-*-freebsd* | *-*-dragonfly*)
+      IS_FREEBSD_TARGET=TRUE ;;
+  esac
+  IS_LIBPATH=FALSE
+  if test "x${USE_LIBPATH}" = xyes; then
+    IS_LIBPATH=TRUE
+  fi
+  IS_NATIVE=FALSE
+  if test "x${NATIVE}" = xyes; then
+    IS_NATIVE=TRUE
+  fi
+
+fragment <<EOF
+
+/* This is called after all the input files have been opened.  */
+
+static void
+gld${EMULATION_NAME}_after_open (void)
+{
+  ldelf_after_open ($IS_LIBPATH, $IS_NATIVE,
+                   $IS_LINUX_TARGET, $IS_FREEBSD_TARGET, $ELFSIZE);
+}
+
+EOF
+fi
+
+if test x"$LDEMUL_BEFORE_ALLOCATION" != xgld"$EMULATION_NAME"_before_allocation; then
+  if test x"${ELF_INTERPRETER_NAME}" = x; then
+    ELF_INTERPRETER_NAME=NULL
+  fi
+fragment <<EOF
+
+/* This is called after the sections have been attached to output
+   sections, but before any sizes or addresses have been set.  */
+
+static void
+gld${EMULATION_NAME}_before_allocation (void)
+{
+  ldelf_before_allocation (audit, depaudit, ${ELF_INTERPRETER_NAME});
+}
+
+EOF
+fi
+
+if test x"$LDEMUL_AFTER_ALLOCATION" != xgld"$EMULATION_NAME"_after_allocation; then
+fragment <<EOF
+
+static void
+gld${EMULATION_NAME}_after_allocation (void)
+{
+  int need_layout = bfd_elf_discard_info (link_info.output_bfd, &link_info);
+
+  if (need_layout < 0)
+    einfo (_("%X%P: .eh_frame/.stab edit: %E\n"));
+  else
+    ldelf_map_segments (need_layout);
+}
+EOF
+fi
+
+if test x"$LDEMUL_GET_SCRIPT" != xgld"$EMULATION_NAME"_get_script; then
+fragment <<EOF
+
+static char *
+gld${EMULATION_NAME}_get_script (int *isfile)
+EOF
+
+if test x"$COMPILE_IN" = xyes
+then
+# Scripts compiled in.
+
+# sed commands to quote an ld script as a C string.
+sc="-f stringify.sed"
+
+fragment <<EOF
+{
+  *isfile = 0;
+
+  if (bfd_link_relocatable (&link_info) && config.build_constructors)
+    return
+EOF
+sed $sc ldscripts/${EMULATION_NAME}.xu                 >> e${EMULATION_NAME}.c
+echo '  ; else if (bfd_link_relocatable (&link_info)) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xr                 >> e${EMULATION_NAME}.c
+echo '  ; else if (!config.text_read_only) return'     >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xbn                        >> e${EMULATION_NAME}.c
+if cmp -s ldscripts/${EMULATION_NAME}.x ldscripts/${EMULATION_NAME}.xn; then : ; else
+echo '  ; else if (!config.magic_demand_paged) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xn                 >> e${EMULATION_NAME}.c
+fi
+if test -n "$GENERATE_PIE_SCRIPT" ; then
+if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
+echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
+echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xdwe               >> e${EMULATION_NAME}.c
+echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
+echo '             && link_info.relro'                 >> e${EMULATION_NAME}.c
+echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xdw                        >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xdceo              >> e${EMULATION_NAME}.c
+fi
+echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc) return'     >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xdce               >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xdco               >> e${EMULATION_NAME}.c
+fi
+echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc) return'     >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xdc                        >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xdeo               >> e${EMULATION_NAME}.c
+fi
+fi
+echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xde                        >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xdo                >> e${EMULATION_NAME}.c
+fi
+echo '  ; else if (bfd_link_pie (&link_info)) return'  >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xd                 >> e${EMULATION_NAME}.c
+fi
+if test -n "$GENERATE_SHLIB_SCRIPT" ; then
+if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
+echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
+echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xswe               >> e${EMULATION_NAME}.c
+echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
+echo '             && link_info.relro'                 >> e${EMULATION_NAME}.c
+echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xsw                        >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xsceo              >> e${EMULATION_NAME}.c
+fi
+echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xsce                       >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xsco               >> e${EMULATION_NAME}.c
+fi
+echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.combreloc) return'     >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xsc                        >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xseo               >> e${EMULATION_NAME}.c
+fi
+fi
+echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xse                        >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xso               >> e${EMULATION_NAME}.c
+fi
+echo '  ; else if (bfd_link_dll (&link_info)) return'  >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xs                 >> e${EMULATION_NAME}.c
+fi
+if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
+echo '  ; else if (link_info.combreloc'                        >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
+echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xwe                        >> e${EMULATION_NAME}.c
+echo '  ; else if (link_info.combreloc'                        >> e${EMULATION_NAME}.c
+echo '             && link_info.relro'                 >> e${EMULATION_NAME}.c
+echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xw                 >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (link_info.combreloc'                 >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'          >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xceo                >> e${EMULATION_NAME}.c
+fi
+echo '  ; else if (link_info.combreloc'                        >> e${EMULATION_NAME}.c
+echo '             && link_info.separate_code) return' >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xce                        >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (link_info.combreloc'                 >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'          >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xco                 >> e${EMULATION_NAME}.c
+fi
+echo '  ; else if (link_info.combreloc) return'                >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xc                 >> e${EMULATION_NAME}.c
+fi
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (link_info.separate_code'             >> e${EMULATION_NAME}.c
+echo '             && link_info.relro) return'          >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xeo                 >> e${EMULATION_NAME}.c
+fi
+echo '  ; else if (link_info.separate_code) return'     >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xe                 >> e${EMULATION_NAME}.c
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+echo '  ; else if (link_info.relro) return'             >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.xo                  >> e${EMULATION_NAME}.c
+fi
+echo '  ; else return'                                 >> e${EMULATION_NAME}.c
+sed $sc ldscripts/${EMULATION_NAME}.x                  >> e${EMULATION_NAME}.c
+echo '; }'                                             >> e${EMULATION_NAME}.c
+
+else
+# Scripts read from the filesystem.
+
+fragment <<EOF
+{
+  *isfile = 1;
+
+  if (bfd_link_relocatable (&link_info) && config.build_constructors)
+    return "ldscripts/${EMULATION_NAME}.xu";
+  else if (bfd_link_relocatable (&link_info))
+    return "ldscripts/${EMULATION_NAME}.xr";
+  else if (!config.text_read_only)
+    return "ldscripts/${EMULATION_NAME}.xbn";
+EOF
+if cmp -s ldscripts/${EMULATION_NAME}.x ldscripts/${EMULATION_NAME}.xn; then :
+else
+fragment <<EOF
+  else if (!config.magic_demand_paged)
+    return "ldscripts/${EMULATION_NAME}.xn";
+EOF
+fi
+if test -n "$GENERATE_PIE_SCRIPT" ; then
+if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
+fragment <<EOF
+  else if (bfd_link_pie (&link_info)
+          && link_info.combreloc
+          && link_info.relro
+          && (link_info.flags & DF_BIND_NOW))
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xdwe";
+      else
+       return "ldscripts/${EMULATION_NAME}.xdw";
+    }
+EOF
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+fragment <<EOF
+  else if (bfd_link_pie (&link_info)
+          && link_info.combreloc
+          && link_info.relro)
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xdceo";
+      else
+       return "ldscripts/${EMULATION_NAME}.xdco";
+    }
+EOF
+fi
+fragment <<EOF
+  else if (bfd_link_pie (&link_info)
+          && link_info.combreloc)
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xdce";
+      else
+       return "ldscripts/${EMULATION_NAME}.xdc";
+    }
+EOF
+fi
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+fragment <<EOF
+  else if (bfd_link_pie (&link_info)
+          && link_info.relro)
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xdeo";
+      else
+       return "ldscripts/${EMULATION_NAME}.xdo";
+    }
+EOF
+fi
+fragment <<EOF
+  else if (bfd_link_pie (&link_info))
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xde";
+      else
+       return "ldscripts/${EMULATION_NAME}.xd";
+    }
+EOF
+fi
+if test -n "$GENERATE_SHLIB_SCRIPT" ; then
+if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
+fragment <<EOF
+  else if (bfd_link_dll (&link_info) && link_info.combreloc
+          && link_info.relro && (link_info.flags & DF_BIND_NOW))
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xswe";
+      else
+       return "ldscripts/${EMULATION_NAME}.xsw";
+    }
+EOF
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+fragment <<EOF
+  else if (bfd_link_dll (&link_info)
+          && link_info.combreloc
+          && link_info.relro)
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xsceo";
+      else
+       return "ldscripts/${EMULATION_NAME}.xsco";
+    }
+EOF
+fi
+fragment <<EOF
+  else if (bfd_link_dll (&link_info) && link_info.combreloc)
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xsce";
+      else
+       return "ldscripts/${EMULATION_NAME}.xsc";
+    }
+EOF
+fi
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+fragment <<EOF
+  else if (bfd_link_dll (&link_info)
+          && link_info.relro)
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xseo";
+      else
+       return "ldscripts/${EMULATION_NAME}.xso";
+    }
+EOF
+fi
+fragment <<EOF
+  else if (bfd_link_dll (&link_info))
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xse";
+      else
+       return "ldscripts/${EMULATION_NAME}.xs";
+    }
+EOF
+fi
+if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
+fragment <<EOF
+  else if (link_info.combreloc && link_info.relro
+          && (link_info.flags & DF_BIND_NOW))
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xwe";
+      else
+       return "ldscripts/${EMULATION_NAME}.xw";
+    }
+EOF
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+fragment <<EOF
+  else if (link_info.combreloc
+          && link_info.relro)
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xceo";
+      else
+       return "ldscripts/${EMULATION_NAME}.xco";
+    }
+EOF
+fi
+fragment <<EOF
+  else if (link_info.combreloc)
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xce";
+      else
+       return "ldscripts/${EMULATION_NAME}.xc";
+    }
+EOF
+fi
+if test -n "$GENERATE_RELRO_SCRIPT" ; then
+fragment <<EOF
+  else if (link_info.relro)
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xeo";
+      else
+       return "ldscripts/${EMULATION_NAME}.xo";
+    }
+EOF
+fi
+fragment <<EOF
+  else
+    {
+      if (link_info.separate_code)
+       return "ldscripts/${EMULATION_NAME}.xe";
+      else
+       return "ldscripts/${EMULATION_NAME}.x";
+    }
+}
+
+EOF
+fi
+fi
+
+if test -n "$PARSE_AND_LIST_PROLOGUE" ; then
+fragment <<EOF
+ $PARSE_AND_LIST_PROLOGUE
+EOF
+fi
+
+fragment <<EOF
+
+enum elf_options
+{
+  OPTION_DISABLE_NEW_DTAGS = 400,
+  OPTION_ENABLE_NEW_DTAGS,
+  OPTION_GROUP,
+  OPTION_EH_FRAME_HDR,
+  OPTION_NO_EH_FRAME_HDR,
+  OPTION_EXCLUDE_LIBS,
+  OPTION_HASH_STYLE,
+  OPTION_BUILD_ID,
+  OPTION_AUDIT,
+  OPTION_COMPRESS_DEBUG
+};
+
+static void
+gld${EMULATION_NAME}_add_options
+  (int ns, char **shortopts, int nl, struct option **longopts,
+   int nrl ATTRIBUTE_UNUSED, struct option **really_longopts ATTRIBUTE_UNUSED)
+{
+EOF
+if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
+fragment <<EOF
+  static const char xtra_short[] = "${PARSE_AND_LIST_SHORTOPTS}z:P:";
+EOF
+else
+fragment <<EOF
+  static const char xtra_short[] = "${PARSE_AND_LIST_SHORTOPTS}z:";
+EOF
+fi
+fragment <<EOF
+  static const struct option xtra_long[] = {
+EOF
+if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
+fragment <<EOF
+    {"audit", required_argument, NULL, OPTION_AUDIT},
+    {"Bgroup", no_argument, NULL, OPTION_GROUP},
+EOF
+fi
+fragment <<EOF
+    {"build-id", optional_argument, NULL, OPTION_BUILD_ID},
+    {"compress-debug-sections", required_argument, NULL, OPTION_COMPRESS_DEBUG},
+EOF
+if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
+fragment <<EOF
+    {"depaudit", required_argument, NULL, 'P'},
+    {"disable-new-dtags", no_argument, NULL, OPTION_DISABLE_NEW_DTAGS},
+    {"enable-new-dtags", no_argument, NULL, OPTION_ENABLE_NEW_DTAGS},
+    {"eh-frame-hdr", no_argument, NULL, OPTION_EH_FRAME_HDR},
+    {"no-eh-frame-hdr", no_argument, NULL, OPTION_NO_EH_FRAME_HDR},
+    {"exclude-libs", required_argument, NULL, OPTION_EXCLUDE_LIBS},
+    {"hash-style", required_argument, NULL, OPTION_HASH_STYLE},
+EOF
+fi
+if test -n "$PARSE_AND_LIST_LONGOPTS" ; then
+fragment <<EOF
+    $PARSE_AND_LIST_LONGOPTS
+EOF
+fi
+fragment <<EOF
+    {NULL, no_argument, NULL, 0}
+  };
+
+  *shortopts = (char *) xrealloc (*shortopts, ns + sizeof (xtra_short));
+  memcpy (*shortopts + ns, &xtra_short, sizeof (xtra_short));
+  *longopts = (struct option *)
+    xrealloc (*longopts, nl * sizeof (struct option) + sizeof (xtra_long));
+  memcpy (*longopts + nl, &xtra_long, sizeof (xtra_long));
+}
+
+#define DEFAULT_BUILD_ID_STYLE "sha1"
+
+static bfd_boolean
+gld${EMULATION_NAME}_handle_option (int optc)
+{
+  switch (optc)
+    {
+    default:
+      return FALSE;
+
+    case OPTION_BUILD_ID:
+      if (ldelf_emit_note_gnu_build_id != NULL)
+       {
+         free ((char *) ldelf_emit_note_gnu_build_id);
+         ldelf_emit_note_gnu_build_id = NULL;
+       }
+      if (optarg == NULL)
+       optarg = DEFAULT_BUILD_ID_STYLE;
+      if (strcmp (optarg, "none"))
+       ldelf_emit_note_gnu_build_id = xstrdup (optarg);
+      break;
+
+    case OPTION_COMPRESS_DEBUG:
+      if (strcasecmp (optarg, "none") == 0)
+       link_info.compress_debug = COMPRESS_DEBUG_NONE;
+      else if (strcasecmp (optarg, "zlib") == 0)
+       link_info.compress_debug = COMPRESS_DEBUG_GABI_ZLIB;
+      else if (strcasecmp (optarg, "zlib-gnu") == 0)
+       link_info.compress_debug = COMPRESS_DEBUG_GNU_ZLIB;
+      else if (strcasecmp (optarg, "zlib-gabi") == 0)
+       link_info.compress_debug = COMPRESS_DEBUG_GABI_ZLIB;
+      else
+       einfo (_("%F%P: invalid --compress-debug-sections option: \`%s'\n"),
+              optarg);
+      break;
+EOF
+
+if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
+fragment <<EOF
+    case OPTION_AUDIT:
+       ldelf_append_to_separated_string (&audit, optarg);
+       break;
+
+    case 'P':
+       ldelf_append_to_separated_string (&depaudit, optarg);
+       break;
+
+    case OPTION_DISABLE_NEW_DTAGS:
+      link_info.new_dtags = FALSE;
+      break;
+
+    case OPTION_ENABLE_NEW_DTAGS:
+      link_info.new_dtags = TRUE;
+      break;
+
+    case OPTION_EH_FRAME_HDR:
+      link_info.eh_frame_hdr_type = DWARF2_EH_HDR;
+      break;
+
+    case OPTION_NO_EH_FRAME_HDR:
+      link_info.eh_frame_hdr_type = 0;
+      break;
+
+    case OPTION_GROUP:
+      link_info.flags_1 |= (bfd_vma) DF_1_GROUP;
+      /* Groups must be self-contained.  */
+      link_info.unresolved_syms_in_objects = RM_GENERATE_ERROR;
+      link_info.unresolved_syms_in_shared_libs = RM_GENERATE_ERROR;
+      break;
+
+    case OPTION_EXCLUDE_LIBS:
+      add_excluded_libs (optarg);
+      break;
+
+    case OPTION_HASH_STYLE:
+      link_info.emit_hash = FALSE;
+      link_info.emit_gnu_hash = FALSE;
+      if (strcmp (optarg, "sysv") == 0)
+       link_info.emit_hash = TRUE;
+      else if (strcmp (optarg, "gnu") == 0)
+       link_info.emit_gnu_hash = TRUE;
+      else if (strcmp (optarg, "both") == 0)
+       {
+         link_info.emit_hash = TRUE;
+         link_info.emit_gnu_hash = TRUE;
+       }
+      else
+       einfo (_("%F%P: invalid hash style \`%s'\n"), optarg);
+      break;
+
+EOF
+fi
+fragment <<EOF
+    case 'z':
+      if (strcmp (optarg, "defs") == 0)
+       link_info.unresolved_syms_in_objects = RM_GENERATE_ERROR;
+      else if (strcmp (optarg, "undefs") == 0)
+       link_info.unresolved_syms_in_objects = RM_IGNORE;
+      else if (strcmp (optarg, "muldefs") == 0)
+       link_info.allow_multiple_definition = TRUE;
+      else if (CONST_STRNEQ (optarg, "max-page-size="))
+       {
+         char *end;
+
+         config.maxpagesize = strtoul (optarg + 14, &end, 0);
+         if (*end || (config.maxpagesize & (config.maxpagesize - 1)) != 0)
+           einfo (_("%F%P: invalid maximum page size \`%s'\n"),
+                  optarg + 14);
+       }
+      else if (CONST_STRNEQ (optarg, "common-page-size="))
+       {
+         char *end;
+         config.commonpagesize = strtoul (optarg + 17, &end, 0);
+         if (*end
+             || (config.commonpagesize & (config.commonpagesize - 1)) != 0)
+           einfo (_("%F%P: invalid common page size \`%s'\n"),
+                  optarg + 17);
+       }
+      else if (CONST_STRNEQ (optarg, "stack-size="))
+       {
+         char *end;
+         link_info.stacksize = strtoul (optarg + 11, &end, 0);
+         if (*end || link_info.stacksize < 0)
+           einfo (_("%F%P: invalid stack size \`%s'\n"), optarg + 11);
+         if (!link_info.stacksize)
+           /* Use -1 for explicit no-stack, because zero means
+              'default'.   */
+           link_info.stacksize = -1;
+       }
+      else if (strcmp (optarg, "execstack") == 0)
+       {
+         link_info.execstack = TRUE;
+         link_info.noexecstack = FALSE;
+       }
+      else if (strcmp (optarg, "noexecstack") == 0)
+       {
+         link_info.noexecstack = TRUE;
+         link_info.execstack = FALSE;
+       }
+      else if (strcmp (optarg, "globalaudit") == 0)
+       {
+         link_info.flags_1 |= DF_1_GLOBAUDIT;
+       }
+EOF
+
+if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
+fragment <<EOF
+      else if (strcmp (optarg, "global") == 0)
+       link_info.flags_1 |= (bfd_vma) DF_1_GLOBAL;
+      else if (strcmp (optarg, "initfirst") == 0)
+       link_info.flags_1 |= (bfd_vma) DF_1_INITFIRST;
+      else if (strcmp (optarg, "interpose") == 0)
+       link_info.flags_1 |= (bfd_vma) DF_1_INTERPOSE;
+      else if (strcmp (optarg, "loadfltr") == 0)
+       link_info.flags_1 |= (bfd_vma) DF_1_LOADFLTR;
+      else if (strcmp (optarg, "nodefaultlib") == 0)
+       link_info.flags_1 |= (bfd_vma) DF_1_NODEFLIB;
+      else if (strcmp (optarg, "nodelete") == 0)
+       link_info.flags_1 |= (bfd_vma) DF_1_NODELETE;
+      else if (strcmp (optarg, "nodlopen") == 0)
+       link_info.flags_1 |= (bfd_vma) DF_1_NOOPEN;
+      else if (strcmp (optarg, "nodump") == 0)
+       link_info.flags_1 |= (bfd_vma) DF_1_NODUMP;
+      else if (strcmp (optarg, "now") == 0)
+       {
+         link_info.flags |= (bfd_vma) DF_BIND_NOW;
+         link_info.flags_1 |= (bfd_vma) DF_1_NOW;
+       }
+      else if (strcmp (optarg, "lazy") == 0)
+       {
+         link_info.flags &= ~(bfd_vma) DF_BIND_NOW;
+         link_info.flags_1 &= ~(bfd_vma) DF_1_NOW;
+       }
+      else if (strcmp (optarg, "origin") == 0)
+       {
+         link_info.flags |= (bfd_vma) DF_ORIGIN;
+         link_info.flags_1 |= (bfd_vma) DF_1_ORIGIN;
+       }
+      else if (strcmp (optarg, "combreloc") == 0)
+       link_info.combreloc = TRUE;
+      else if (strcmp (optarg, "nocombreloc") == 0)
+       link_info.combreloc = FALSE;
+      else if (strcmp (optarg, "nocopyreloc") == 0)
+       link_info.nocopyreloc = TRUE;
+      else if (strcmp (optarg, "relro") == 0)
+       link_info.relro = TRUE;
+      else if (strcmp (optarg, "norelro") == 0)
+       link_info.relro = FALSE;
+      else if (strcmp (optarg, "separate-code") == 0)
+       link_info.separate_code = TRUE;
+      else if (strcmp (optarg, "noseparate-code") == 0)
+       link_info.separate_code = FALSE;
+      else if (strcmp (optarg, "common") == 0)
+       link_info.elf_stt_common = elf_stt_common;
+      else if (strcmp (optarg, "nocommon") == 0)
+       link_info.elf_stt_common = no_elf_stt_common;
+      else if (strcmp (optarg, "text") == 0)
+       link_info.error_textrel = TRUE;
+      else if (strcmp (optarg, "notext") == 0)
+       link_info.error_textrel = FALSE;
+      else if (strcmp (optarg, "textoff") == 0)
+       link_info.error_textrel = FALSE;
+EOF
+fi
+
+if test -n "$PARSE_AND_LIST_ARGS_CASE_Z" ; then
+fragment <<EOF
+ $PARSE_AND_LIST_ARGS_CASE_Z
+EOF
+fi
+
+fragment <<EOF
+      else
+       einfo (_("%P: warning: -z %s ignored\n"), optarg);
+      break;
+EOF
+
+if test -n "$PARSE_AND_LIST_ARGS_CASES" ; then
+fragment <<EOF
+ $PARSE_AND_LIST_ARGS_CASES
+EOF
+fi
+
+fragment <<EOF
+    }
+
+  return TRUE;
+}
+
+EOF
+
+if test x"$LDEMUL_LIST_OPTIONS" != xgld"$EMULATION_NAME"_list_options; then
+gld_list_options="gld${EMULATION_NAME}_list_options"
+if test -n "$PARSE_AND_LIST_OPTIONS"; then
+fragment <<EOF
+
+static void
+gld${EMULATION_NAME}_list_options (FILE * file)
+{
+EOF
+
+if test -n "$PARSE_AND_LIST_OPTIONS" ; then
+fragment <<EOF
+ $PARSE_AND_LIST_OPTIONS
+EOF
+fi
+
+fragment <<EOF
+}
+EOF
+else
+  gld_list_options="NULL"
+fi
+
+if test -n "$PARSE_AND_LIST_EPILOGUE" ; then
+fragment <<EOF
+ $PARSE_AND_LIST_EPILOGUE
+EOF
+fi
+fi
+
+fragment <<EOF
+
+struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
+{
+  ${LDEMUL_BEFORE_PARSE-gld${EMULATION_NAME}_before_parse},
+  ${LDEMUL_SYSLIB-syslib_default},
+  ${LDEMUL_HLL-hll_default},
+  ${LDEMUL_AFTER_PARSE-ldelf_after_parse},
+  ${LDEMUL_AFTER_OPEN-gld${EMULATION_NAME}_after_open},
+  ${LDEMUL_AFTER_CHECK_RELOCS-after_check_relocs_default},
+  ${LDEMUL_AFTER_ALLOCATION-gld${EMULATION_NAME}_after_allocation},
+  ${LDEMUL_SET_OUTPUT_ARCH-set_output_arch_default},
+  ${LDEMUL_CHOOSE_TARGET-ldemul_default_target},
+  ${LDEMUL_BEFORE_ALLOCATION-gld${EMULATION_NAME}_before_allocation},
+  ${LDEMUL_GET_SCRIPT-gld${EMULATION_NAME}_get_script},
+  "${EMULATION_NAME}",
+  "${OUTPUT_FORMAT}",
+  ${LDEMUL_FINISH-finish_default},
+  ${LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS-NULL},
+  ${LDEMUL_OPEN_DYNAMIC_ARCHIVE-ldelf_open_dynamic_archive},
+  ${LDEMUL_PLACE_ORPHAN-ldelf_place_orphan},
+  ${LDEMUL_SET_SYMBOLS-NULL},
+  ${LDEMUL_PARSE_ARGS-NULL},
+  gld${EMULATION_NAME}_add_options,
+  gld${EMULATION_NAME}_handle_option,
+  ${LDEMUL_UNRECOGNIZED_FILE-NULL},
+  ${LDEMUL_LIST_OPTIONS-${gld_list_options}},
+  ${LDEMUL_RECOGNIZED_FILE-ldelf_load_symbols},
+  ${LDEMUL_FIND_POTENTIAL_LIBRARIES-NULL},
+  ${LDEMUL_NEW_VERS_PATTERN-NULL},
+  ${LDEMUL_EXTRA_MAP_FILE_TEXT-NULL}
+};
+EOF
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
deleted file mode 100644 (file)
index 5a3cc2f..0000000
+++ /dev/null
@@ -1,906 +0,0 @@
-# This shell script emits a C file. -*- C -*-
-# It does some substitutions.
-# This file is now misnamed, because it supports both 32 bit and 64 bit
-# ELF emulations.
-test -z "${ELFSIZE}" && ELFSIZE=32
-if [ -z "$MACHINE" ]; then
-  OUTPUT_ARCH=${ARCH}
-else
-  OUTPUT_ARCH=${ARCH}:${MACHINE}
-fi
-fragment <<EOF
-/* This file is is generated by a shell script.  DO NOT EDIT! */
-
-/* ${ELFSIZE} bit ELF emulation code for ${EMULATION_NAME}
-   Copyright (C) 1991-2019 Free Software Foundation, Inc.
-   Written by Steve Chamberlain <sac@cygnus.com>
-   ELF support by Ian Lance Taylor <ian@cygnus.com>
-
-   This file is part of the GNU Binutils.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
-   MA 02110-1301, USA.  */
-
-#define TARGET_IS_${EMULATION_NAME}
-
-#include "sysdep.h"
-#include "bfd.h"
-#include "libiberty.h"
-#include "getopt.h"
-#include "bfdlink.h"
-#include "ld.h"
-#include "ldmain.h"
-#include "ldmisc.h"
-#include "ldexp.h"
-#include "ldlang.h"
-#include "ldfile.h"
-#include "ldemul.h"
-#include <ldgram.h>
-#include "elf-bfd.h"
-#include "ldelf.h"
-#include "ldelfgen.h"
-
-/* Declare functions used by various EXTRA_EM_FILEs.  */
-static void gld${EMULATION_NAME}_before_parse (void);
-static void gld${EMULATION_NAME}_after_open (void);
-static void gld${EMULATION_NAME}_before_allocation (void);
-static void gld${EMULATION_NAME}_after_allocation (void);
-EOF
-
-# Import any needed special functions and/or overrides.
-#
-source_em ${srcdir}/emultempl/elf-generic.em
-if test -n "$EXTRA_EM_FILE" ; then
-  source_em ${srcdir}/emultempl/${EXTRA_EM_FILE}.em
-fi
-
-# Functions in this file can be overridden by setting the LDEMUL_* shell
-# variables.  If the name of the overriding function is the same as is
-# defined in this file, then don't output this file's version.
-# If a different overriding name is given then output the standard function
-# as presumably it is called from the overriding function.
-#
-if test x"$LDEMUL_BEFORE_PARSE" != xgld"$EMULATION_NAME"_before_parse; then
-fragment <<EOF
-
-static void
-gld${EMULATION_NAME}_before_parse (void)
-{
-  ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`);
-  input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
-  config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
-  config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
-  link_info.check_relocs_after_open_input = TRUE;
-  link_info.relro = DEFAULT_LD_Z_RELRO;
-  link_info.separate_code = DEFAULT_LD_Z_SEPARATE_CODE;
-}
-
-EOF
-fi
-
-fragment <<EOF
-
-/* These variables are used to implement target options */
-
-static char *audit; /* colon (typically) separated list of libs */
-static char *depaudit; /* colon (typically) separated list of libs */
-
-EOF
-
-if test x"$LDEMUL_AFTER_OPEN" != xgld"$EMULATION_NAME"_after_open; then
-
-  IS_LINUX_TARGET=FALSE
-  IS_FREEBSD_TARGET=FALSE
-  case ${target} in
-    *-*-linux-* | *-*-k*bsd*-* | *-*-gnu*)
-      IS_LINUX_TARGET=TRUE ;;
-    *-*-freebsd* | *-*-dragonfly*)
-      IS_FREEBSD_TARGET=TRUE ;;
-  esac
-  IS_LIBPATH=FALSE
-  if test "x${USE_LIBPATH}" = xyes; then
-    IS_LIBPATH=TRUE
-  fi
-  IS_NATIVE=FALSE
-  if test "x${NATIVE}" = xyes; then
-    IS_NATIVE=TRUE
-  fi
-
-fragment <<EOF
-
-/* This is called after all the input files have been opened.  */
-
-static void
-gld${EMULATION_NAME}_after_open (void)
-{
-  ldelf_after_open ($IS_LIBPATH, $IS_NATIVE,
-                   $IS_LINUX_TARGET, $IS_FREEBSD_TARGET, $ELFSIZE);
-}
-
-EOF
-fi
-
-if test x"$LDEMUL_BEFORE_ALLOCATION" != xgld"$EMULATION_NAME"_before_allocation; then
-  if test x"${ELF_INTERPRETER_NAME}" = x; then
-    ELF_INTERPRETER_NAME=NULL
-  fi
-fragment <<EOF
-
-/* This is called after the sections have been attached to output
-   sections, but before any sizes or addresses have been set.  */
-
-static void
-gld${EMULATION_NAME}_before_allocation (void)
-{
-  ldelf_before_allocation (audit, depaudit, ${ELF_INTERPRETER_NAME});
-}
-
-EOF
-fi
-
-if test x"$LDEMUL_AFTER_ALLOCATION" != xgld"$EMULATION_NAME"_after_allocation; then
-fragment <<EOF
-
-static void
-gld${EMULATION_NAME}_after_allocation (void)
-{
-  int need_layout = bfd_elf_discard_info (link_info.output_bfd, &link_info);
-
-  if (need_layout < 0)
-    einfo (_("%X%P: .eh_frame/.stab edit: %E\n"));
-  else
-    ldelf_map_segments (need_layout);
-}
-EOF
-fi
-
-if test x"$LDEMUL_GET_SCRIPT" != xgld"$EMULATION_NAME"_get_script; then
-fragment <<EOF
-
-static char *
-gld${EMULATION_NAME}_get_script (int *isfile)
-EOF
-
-if test x"$COMPILE_IN" = xyes
-then
-# Scripts compiled in.
-
-# sed commands to quote an ld script as a C string.
-sc="-f stringify.sed"
-
-fragment <<EOF
-{
-  *isfile = 0;
-
-  if (bfd_link_relocatable (&link_info) && config.build_constructors)
-    return
-EOF
-sed $sc ldscripts/${EMULATION_NAME}.xu                 >> e${EMULATION_NAME}.c
-echo '  ; else if (bfd_link_relocatable (&link_info)) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xr                 >> e${EMULATION_NAME}.c
-echo '  ; else if (!config.text_read_only) return'     >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xbn                        >> e${EMULATION_NAME}.c
-if cmp -s ldscripts/${EMULATION_NAME}.x ldscripts/${EMULATION_NAME}.xn; then : ; else
-echo '  ; else if (!config.magic_demand_paged) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xn                 >> e${EMULATION_NAME}.c
-fi
-if test -n "$GENERATE_PIE_SCRIPT" ; then
-if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
-echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
-echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xdwe               >> e${EMULATION_NAME}.c
-echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
-echo '             && link_info.relro'                 >> e${EMULATION_NAME}.c
-echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xdw                        >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xdceo              >> e${EMULATION_NAME}.c
-fi
-echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc) return'     >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xdce               >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xdco               >> e${EMULATION_NAME}.c
-fi
-echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc) return'     >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xdc                        >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xdeo               >> e${EMULATION_NAME}.c
-fi
-fi
-echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xde                        >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (bfd_link_pie (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xdo                >> e${EMULATION_NAME}.c
-fi
-echo '  ; else if (bfd_link_pie (&link_info)) return'  >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xd                 >> e${EMULATION_NAME}.c
-fi
-if test -n "$GENERATE_SHLIB_SCRIPT" ; then
-if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
-echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
-echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xswe               >> e${EMULATION_NAME}.c
-echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
-echo '             && link_info.relro'                 >> e${EMULATION_NAME}.c
-echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xsw                        >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xsceo              >> e${EMULATION_NAME}.c
-fi
-echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xsce                       >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc'             >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xsco               >> e${EMULATION_NAME}.c
-fi
-echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.combreloc) return'     >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xsc                        >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xseo               >> e${EMULATION_NAME}.c
-fi
-fi
-echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xse                        >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (bfd_link_dll (&link_info)'          >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'         >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xso               >> e${EMULATION_NAME}.c
-fi
-echo '  ; else if (bfd_link_dll (&link_info)) return'  >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xs                 >> e${EMULATION_NAME}.c
-fi
-if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
-echo '  ; else if (link_info.combreloc'                        >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
-echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xwe                        >> e${EMULATION_NAME}.c
-echo '  ; else if (link_info.combreloc'                        >> e${EMULATION_NAME}.c
-echo '             && link_info.relro'                 >> e${EMULATION_NAME}.c
-echo '             && (link_info.flags & DF_BIND_NOW)) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xw                 >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (link_info.combreloc'                 >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code'         >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'          >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xceo                >> e${EMULATION_NAME}.c
-fi
-echo '  ; else if (link_info.combreloc'                        >> e${EMULATION_NAME}.c
-echo '             && link_info.separate_code) return' >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xce                        >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (link_info.combreloc'                 >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'          >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xco                 >> e${EMULATION_NAME}.c
-fi
-echo '  ; else if (link_info.combreloc) return'                >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xc                 >> e${EMULATION_NAME}.c
-fi
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (link_info.separate_code'             >> e${EMULATION_NAME}.c
-echo '             && link_info.relro) return'          >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xeo                 >> e${EMULATION_NAME}.c
-fi
-echo '  ; else if (link_info.separate_code) return'     >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xe                 >> e${EMULATION_NAME}.c
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-echo '  ; else if (link_info.relro) return'             >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.xo                  >> e${EMULATION_NAME}.c
-fi
-echo '  ; else return'                                 >> e${EMULATION_NAME}.c
-sed $sc ldscripts/${EMULATION_NAME}.x                  >> e${EMULATION_NAME}.c
-echo '; }'                                             >> e${EMULATION_NAME}.c
-
-else
-# Scripts read from the filesystem.
-
-fragment <<EOF
-{
-  *isfile = 1;
-
-  if (bfd_link_relocatable (&link_info) && config.build_constructors)
-    return "ldscripts/${EMULATION_NAME}.xu";
-  else if (bfd_link_relocatable (&link_info))
-    return "ldscripts/${EMULATION_NAME}.xr";
-  else if (!config.text_read_only)
-    return "ldscripts/${EMULATION_NAME}.xbn";
-EOF
-if cmp -s ldscripts/${EMULATION_NAME}.x ldscripts/${EMULATION_NAME}.xn; then :
-else
-fragment <<EOF
-  else if (!config.magic_demand_paged)
-    return "ldscripts/${EMULATION_NAME}.xn";
-EOF
-fi
-if test -n "$GENERATE_PIE_SCRIPT" ; then
-if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
-fragment <<EOF
-  else if (bfd_link_pie (&link_info)
-          && link_info.combreloc
-          && link_info.relro
-          && (link_info.flags & DF_BIND_NOW))
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xdwe";
-      else
-       return "ldscripts/${EMULATION_NAME}.xdw";
-    }
-EOF
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-fragment <<EOF
-  else if (bfd_link_pie (&link_info)
-          && link_info.combreloc
-          && link_info.relro)
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xdceo";
-      else
-       return "ldscripts/${EMULATION_NAME}.xdco";
-    }
-EOF
-fi
-fragment <<EOF
-  else if (bfd_link_pie (&link_info)
-          && link_info.combreloc)
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xdce";
-      else
-       return "ldscripts/${EMULATION_NAME}.xdc";
-    }
-EOF
-fi
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-fragment <<EOF
-  else if (bfd_link_pie (&link_info)
-          && link_info.relro)
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xdeo";
-      else
-       return "ldscripts/${EMULATION_NAME}.xdo";
-    }
-EOF
-fi
-fragment <<EOF
-  else if (bfd_link_pie (&link_info))
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xde";
-      else
-       return "ldscripts/${EMULATION_NAME}.xd";
-    }
-EOF
-fi
-if test -n "$GENERATE_SHLIB_SCRIPT" ; then
-if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
-fragment <<EOF
-  else if (bfd_link_dll (&link_info) && link_info.combreloc
-          && link_info.relro && (link_info.flags & DF_BIND_NOW))
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xswe";
-      else
-       return "ldscripts/${EMULATION_NAME}.xsw";
-    }
-EOF
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-fragment <<EOF
-  else if (bfd_link_dll (&link_info)
-          && link_info.combreloc
-          && link_info.relro)
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xsceo";
-      else
-       return "ldscripts/${EMULATION_NAME}.xsco";
-    }
-EOF
-fi
-fragment <<EOF
-  else if (bfd_link_dll (&link_info) && link_info.combreloc)
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xsce";
-      else
-       return "ldscripts/${EMULATION_NAME}.xsc";
-    }
-EOF
-fi
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-fragment <<EOF
-  else if (bfd_link_dll (&link_info)
-          && link_info.relro)
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xseo";
-      else
-       return "ldscripts/${EMULATION_NAME}.xso";
-    }
-EOF
-fi
-fragment <<EOF
-  else if (bfd_link_dll (&link_info))
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xse";
-      else
-       return "ldscripts/${EMULATION_NAME}.xs";
-    }
-EOF
-fi
-if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
-fragment <<EOF
-  else if (link_info.combreloc && link_info.relro
-          && (link_info.flags & DF_BIND_NOW))
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xwe";
-      else
-       return "ldscripts/${EMULATION_NAME}.xw";
-    }
-EOF
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-fragment <<EOF
-  else if (link_info.combreloc
-          && link_info.relro)
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xceo";
-      else
-       return "ldscripts/${EMULATION_NAME}.xco";
-    }
-EOF
-fi
-fragment <<EOF
-  else if (link_info.combreloc)
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xce";
-      else
-       return "ldscripts/${EMULATION_NAME}.xc";
-    }
-EOF
-fi
-if test -n "$GENERATE_RELRO_SCRIPT" ; then
-fragment <<EOF
-  else if (link_info.relro)
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xeo";
-      else
-       return "ldscripts/${EMULATION_NAME}.xo";
-    }
-EOF
-fi
-fragment <<EOF
-  else
-    {
-      if (link_info.separate_code)
-       return "ldscripts/${EMULATION_NAME}.xe";
-      else
-       return "ldscripts/${EMULATION_NAME}.x";
-    }
-}
-
-EOF
-fi
-fi
-
-if test -n "$PARSE_AND_LIST_PROLOGUE" ; then
-fragment <<EOF
- $PARSE_AND_LIST_PROLOGUE
-EOF
-fi
-
-fragment <<EOF
-
-enum elf_options
-{
-  OPTION_DISABLE_NEW_DTAGS = 400,
-  OPTION_ENABLE_NEW_DTAGS,
-  OPTION_GROUP,
-  OPTION_EH_FRAME_HDR,
-  OPTION_NO_EH_FRAME_HDR,
-  OPTION_EXCLUDE_LIBS,
-  OPTION_HASH_STYLE,
-  OPTION_BUILD_ID,
-  OPTION_AUDIT,
-  OPTION_COMPRESS_DEBUG
-};
-
-static void
-gld${EMULATION_NAME}_add_options
-  (int ns, char **shortopts, int nl, struct option **longopts,
-   int nrl ATTRIBUTE_UNUSED, struct option **really_longopts ATTRIBUTE_UNUSED)
-{
-EOF
-if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
-fragment <<EOF
-  static const char xtra_short[] = "${PARSE_AND_LIST_SHORTOPTS}z:P:";
-EOF
-else
-fragment <<EOF
-  static const char xtra_short[] = "${PARSE_AND_LIST_SHORTOPTS}z:";
-EOF
-fi
-fragment <<EOF
-  static const struct option xtra_long[] = {
-EOF
-if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
-fragment <<EOF
-    {"audit", required_argument, NULL, OPTION_AUDIT},
-    {"Bgroup", no_argument, NULL, OPTION_GROUP},
-EOF
-fi
-fragment <<EOF
-    {"build-id", optional_argument, NULL, OPTION_BUILD_ID},
-    {"compress-debug-sections", required_argument, NULL, OPTION_COMPRESS_DEBUG},
-EOF
-if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
-fragment <<EOF
-    {"depaudit", required_argument, NULL, 'P'},
-    {"disable-new-dtags", no_argument, NULL, OPTION_DISABLE_NEW_DTAGS},
-    {"enable-new-dtags", no_argument, NULL, OPTION_ENABLE_NEW_DTAGS},
-    {"eh-frame-hdr", no_argument, NULL, OPTION_EH_FRAME_HDR},
-    {"no-eh-frame-hdr", no_argument, NULL, OPTION_NO_EH_FRAME_HDR},
-    {"exclude-libs", required_argument, NULL, OPTION_EXCLUDE_LIBS},
-    {"hash-style", required_argument, NULL, OPTION_HASH_STYLE},
-EOF
-fi
-if test -n "$PARSE_AND_LIST_LONGOPTS" ; then
-fragment <<EOF
-    $PARSE_AND_LIST_LONGOPTS
-EOF
-fi
-fragment <<EOF
-    {NULL, no_argument, NULL, 0}
-  };
-
-  *shortopts = (char *) xrealloc (*shortopts, ns + sizeof (xtra_short));
-  memcpy (*shortopts + ns, &xtra_short, sizeof (xtra_short));
-  *longopts = (struct option *)
-    xrealloc (*longopts, nl * sizeof (struct option) + sizeof (xtra_long));
-  memcpy (*longopts + nl, &xtra_long, sizeof (xtra_long));
-}
-
-#define DEFAULT_BUILD_ID_STYLE "sha1"
-
-static bfd_boolean
-gld${EMULATION_NAME}_handle_option (int optc)
-{
-  switch (optc)
-    {
-    default:
-      return FALSE;
-
-    case OPTION_BUILD_ID:
-      if (ldelf_emit_note_gnu_build_id != NULL)
-       {
-         free ((char *) ldelf_emit_note_gnu_build_id);
-         ldelf_emit_note_gnu_build_id = NULL;
-       }
-      if (optarg == NULL)
-       optarg = DEFAULT_BUILD_ID_STYLE;
-      if (strcmp (optarg, "none"))
-       ldelf_emit_note_gnu_build_id = xstrdup (optarg);
-      break;
-
-    case OPTION_COMPRESS_DEBUG:
-      if (strcasecmp (optarg, "none") == 0)
-       link_info.compress_debug = COMPRESS_DEBUG_NONE;
-      else if (strcasecmp (optarg, "zlib") == 0)
-       link_info.compress_debug = COMPRESS_DEBUG_GABI_ZLIB;
-      else if (strcasecmp (optarg, "zlib-gnu") == 0)
-       link_info.compress_debug = COMPRESS_DEBUG_GNU_ZLIB;
-      else if (strcasecmp (optarg, "zlib-gabi") == 0)
-       link_info.compress_debug = COMPRESS_DEBUG_GABI_ZLIB;
-      else
-       einfo (_("%F%P: invalid --compress-debug-sections option: \`%s'\n"),
-              optarg);
-      break;
-EOF
-
-if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
-fragment <<EOF
-    case OPTION_AUDIT:
-       ldelf_append_to_separated_string (&audit, optarg);
-       break;
-
-    case 'P':
-       ldelf_append_to_separated_string (&depaudit, optarg);
-       break;
-
-    case OPTION_DISABLE_NEW_DTAGS:
-      link_info.new_dtags = FALSE;
-      break;
-
-    case OPTION_ENABLE_NEW_DTAGS:
-      link_info.new_dtags = TRUE;
-      break;
-
-    case OPTION_EH_FRAME_HDR:
-      link_info.eh_frame_hdr_type = DWARF2_EH_HDR;
-      break;
-
-    case OPTION_NO_EH_FRAME_HDR:
-      link_info.eh_frame_hdr_type = 0;
-      break;
-
-    case OPTION_GROUP:
-      link_info.flags_1 |= (bfd_vma) DF_1_GROUP;
-      /* Groups must be self-contained.  */
-      link_info.unresolved_syms_in_objects = RM_GENERATE_ERROR;
-      link_info.unresolved_syms_in_shared_libs = RM_GENERATE_ERROR;
-      break;
-
-    case OPTION_EXCLUDE_LIBS:
-      add_excluded_libs (optarg);
-      break;
-
-    case OPTION_HASH_STYLE:
-      link_info.emit_hash = FALSE;
-      link_info.emit_gnu_hash = FALSE;
-      if (strcmp (optarg, "sysv") == 0)
-       link_info.emit_hash = TRUE;
-      else if (strcmp (optarg, "gnu") == 0)
-       link_info.emit_gnu_hash = TRUE;
-      else if (strcmp (optarg, "both") == 0)
-       {
-         link_info.emit_hash = TRUE;
-         link_info.emit_gnu_hash = TRUE;
-       }
-      else
-       einfo (_("%F%P: invalid hash style \`%s'\n"), optarg);
-      break;
-
-EOF
-fi
-fragment <<EOF
-    case 'z':
-      if (strcmp (optarg, "defs") == 0)
-       link_info.unresolved_syms_in_objects = RM_GENERATE_ERROR;
-      else if (strcmp (optarg, "undefs") == 0)
-       link_info.unresolved_syms_in_objects = RM_IGNORE;
-      else if (strcmp (optarg, "muldefs") == 0)
-       link_info.allow_multiple_definition = TRUE;
-      else if (CONST_STRNEQ (optarg, "max-page-size="))
-       {
-         char *end;
-
-         config.maxpagesize = strtoul (optarg + 14, &end, 0);
-         if (*end || (config.maxpagesize & (config.maxpagesize - 1)) != 0)
-           einfo (_("%F%P: invalid maximum page size \`%s'\n"),
-                  optarg + 14);
-       }
-      else if (CONST_STRNEQ (optarg, "common-page-size="))
-       {
-         char *end;
-         config.commonpagesize = strtoul (optarg + 17, &end, 0);
-         if (*end
-             || (config.commonpagesize & (config.commonpagesize - 1)) != 0)
-           einfo (_("%F%P: invalid common page size \`%s'\n"),
-                  optarg + 17);
-       }
-      else if (CONST_STRNEQ (optarg, "stack-size="))
-       {
-         char *end;
-         link_info.stacksize = strtoul (optarg + 11, &end, 0);
-         if (*end || link_info.stacksize < 0)
-           einfo (_("%F%P: invalid stack size \`%s'\n"), optarg + 11);
-         if (!link_info.stacksize)
-           /* Use -1 for explicit no-stack, because zero means
-              'default'.   */
-           link_info.stacksize = -1;
-       }
-      else if (strcmp (optarg, "execstack") == 0)
-       {
-         link_info.execstack = TRUE;
-         link_info.noexecstack = FALSE;
-       }
-      else if (strcmp (optarg, "noexecstack") == 0)
-       {
-         link_info.noexecstack = TRUE;
-         link_info.execstack = FALSE;
-       }
-      else if (strcmp (optarg, "globalaudit") == 0)
-       {
-         link_info.flags_1 |= DF_1_GLOBAUDIT;
-       }
-EOF
-
-if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
-fragment <<EOF
-      else if (strcmp (optarg, "global") == 0)
-       link_info.flags_1 |= (bfd_vma) DF_1_GLOBAL;
-      else if (strcmp (optarg, "initfirst") == 0)
-       link_info.flags_1 |= (bfd_vma) DF_1_INITFIRST;
-      else if (strcmp (optarg, "interpose") == 0)
-       link_info.flags_1 |= (bfd_vma) DF_1_INTERPOSE;
-      else if (strcmp (optarg, "loadfltr") == 0)
-       link_info.flags_1 |= (bfd_vma) DF_1_LOADFLTR;
-      else if (strcmp (optarg, "nodefaultlib") == 0)
-       link_info.flags_1 |= (bfd_vma) DF_1_NODEFLIB;
-      else if (strcmp (optarg, "nodelete") == 0)
-       link_info.flags_1 |= (bfd_vma) DF_1_NODELETE;
-      else if (strcmp (optarg, "nodlopen") == 0)
-       link_info.flags_1 |= (bfd_vma) DF_1_NOOPEN;
-      else if (strcmp (optarg, "nodump") == 0)
-       link_info.flags_1 |= (bfd_vma) DF_1_NODUMP;
-      else if (strcmp (optarg, "now") == 0)
-       {
-         link_info.flags |= (bfd_vma) DF_BIND_NOW;
-         link_info.flags_1 |= (bfd_vma) DF_1_NOW;
-       }
-      else if (strcmp (optarg, "lazy") == 0)
-       {
-         link_info.flags &= ~(bfd_vma) DF_BIND_NOW;
-         link_info.flags_1 &= ~(bfd_vma) DF_1_NOW;
-       }
-      else if (strcmp (optarg, "origin") == 0)
-       {
-         link_info.flags |= (bfd_vma) DF_ORIGIN;
-         link_info.flags_1 |= (bfd_vma) DF_1_ORIGIN;
-       }
-      else if (strcmp (optarg, "combreloc") == 0)
-       link_info.combreloc = TRUE;
-      else if (strcmp (optarg, "nocombreloc") == 0)
-       link_info.combreloc = FALSE;
-      else if (strcmp (optarg, "nocopyreloc") == 0)
-       link_info.nocopyreloc = TRUE;
-      else if (strcmp (optarg, "relro") == 0)
-       link_info.relro = TRUE;
-      else if (strcmp (optarg, "norelro") == 0)
-       link_info.relro = FALSE;
-      else if (strcmp (optarg, "separate-code") == 0)
-       link_info.separate_code = TRUE;
-      else if (strcmp (optarg, "noseparate-code") == 0)
-       link_info.separate_code = FALSE;
-      else if (strcmp (optarg, "common") == 0)
-       link_info.elf_stt_common = elf_stt_common;
-      else if (strcmp (optarg, "nocommon") == 0)
-       link_info.elf_stt_common = no_elf_stt_common;
-      else if (strcmp (optarg, "text") == 0)
-       link_info.error_textrel = TRUE;
-      else if (strcmp (optarg, "notext") == 0)
-       link_info.error_textrel = FALSE;
-      else if (strcmp (optarg, "textoff") == 0)
-       link_info.error_textrel = FALSE;
-EOF
-fi
-
-if test -n "$PARSE_AND_LIST_ARGS_CASE_Z" ; then
-fragment <<EOF
- $PARSE_AND_LIST_ARGS_CASE_Z
-EOF
-fi
-
-fragment <<EOF
-      else
-       einfo (_("%P: warning: -z %s ignored\n"), optarg);
-      break;
-EOF
-
-if test -n "$PARSE_AND_LIST_ARGS_CASES" ; then
-fragment <<EOF
- $PARSE_AND_LIST_ARGS_CASES
-EOF
-fi
-
-fragment <<EOF
-    }
-
-  return TRUE;
-}
-
-EOF
-
-if test x"$LDEMUL_LIST_OPTIONS" != xgld"$EMULATION_NAME"_list_options; then
-gld_list_options="gld${EMULATION_NAME}_list_options"
-if test -n "$PARSE_AND_LIST_OPTIONS"; then
-fragment <<EOF
-
-static void
-gld${EMULATION_NAME}_list_options (FILE * file)
-{
-EOF
-
-if test -n "$PARSE_AND_LIST_OPTIONS" ; then
-fragment <<EOF
- $PARSE_AND_LIST_OPTIONS
-EOF
-fi
-
-fragment <<EOF
-}
-EOF
-else
-  gld_list_options="NULL"
-fi
-
-if test -n "$PARSE_AND_LIST_EPILOGUE" ; then
-fragment <<EOF
- $PARSE_AND_LIST_EPILOGUE
-EOF
-fi
-fi
-
-fragment <<EOF
-
-struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
-{
-  ${LDEMUL_BEFORE_PARSE-gld${EMULATION_NAME}_before_parse},
-  ${LDEMUL_SYSLIB-syslib_default},
-  ${LDEMUL_HLL-hll_default},
-  ${LDEMUL_AFTER_PARSE-ldelf_after_parse},
-  ${LDEMUL_AFTER_OPEN-gld${EMULATION_NAME}_after_open},
-  ${LDEMUL_AFTER_CHECK_RELOCS-after_check_relocs_default},
-  ${LDEMUL_AFTER_ALLOCATION-gld${EMULATION_NAME}_after_allocation},
-  ${LDEMUL_SET_OUTPUT_ARCH-set_output_arch_default},
-  ${LDEMUL_CHOOSE_TARGET-ldemul_default_target},
-  ${LDEMUL_BEFORE_ALLOCATION-gld${EMULATION_NAME}_before_allocation},
-  ${LDEMUL_GET_SCRIPT-gld${EMULATION_NAME}_get_script},
-  "${EMULATION_NAME}",
-  "${OUTPUT_FORMAT}",
-  ${LDEMUL_FINISH-finish_default},
-  ${LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS-NULL},
-  ${LDEMUL_OPEN_DYNAMIC_ARCHIVE-ldelf_open_dynamic_archive},
-  ${LDEMUL_PLACE_ORPHAN-ldelf_place_orphan},
-  ${LDEMUL_SET_SYMBOLS-NULL},
-  ${LDEMUL_PARSE_ARGS-NULL},
-  gld${EMULATION_NAME}_add_options,
-  gld${EMULATION_NAME}_handle_option,
-  ${LDEMUL_UNRECOGNIZED_FILE-NULL},
-  ${LDEMUL_LIST_OPTIONS-${gld_list_options}},
-  ${LDEMUL_RECOGNIZED_FILE-ldelf_load_symbols},
-  ${LDEMUL_FIND_POTENTIAL_LIBRARIES-NULL},
-  ${LDEMUL_NEW_VERS_PATTERN-NULL},
-  ${LDEMUL_EXTRA_MAP_FILE_TEXT-NULL}
-};
-EOF
index 6e0f9cd1c68f193fdbffa26350b0ea204cf2c53e..123ba60a97b22975a583edd7acac7f26cd22e6e3 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra epiphany-elf
+# This file is sourced from elf.em, and defines extra epiphany-elf
 # specific routines.
 #
 
index 547ab9b39835e4322931a4a08d1f6e5601214630..d7e822c6561ffe2f0001b4c719b4a7ab463f5357 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra hppa-elf
+# This file is sourced from elf.em, and defines extra hppa-elf
 # specific routines.
 #
 fragment <<EOF
index e67a04ca105904fb115403ee7ee525cefee16849..59e1d8da79cd82ae22d00760aa7cf33151c9b82d 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra ia64-elf
+# This file is sourced from elf.em, and defines extra ia64-elf
 # specific routines.
 #
 # Define some shell vars to insert bits of code into the standard elf
index 3fa325a4498aa8dbee8c3d27aec3e3a66cb857d4..b55989e0e66b4d7b96844420ed3c92a1ac9005b4 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra m68hc12-elf
+# This file is sourced from elf.em, and defines extra m68hc12-elf
 # and m68hc11-elf specific routines.  It is used to generate the
 # HC11/HC12 trampolines to call a far function by using a normal 'jsr/bsr'.
 #
index 5c87bf77ee826b0506369c27d0cf0742c93214e4..add8fd21dc1f1f168526d8ab21771517c729bb9f 100644 (file)
@@ -20,9 +20,9 @@
 # MA 02110-1301, USA.
 
 
-# This file is sourced from elf32.em, and defines some extra routines for m68k
+# This file is sourced from elf.em, and defines some extra routines for m68k
 # embedded systems using ELF and for some other systems using m68k ELF.  While
-# it is sourced from elf32.em for all m68k ELF configurations, here we include
+# it is sourced from elf.em for all m68k ELF configurations, here we include
 # only the features we want depending on the configuration.
 
 case ${target} in
index 966d19c16650e5d3f3b58bc4d58cee282c03d01e..f56aa464d603e994cf4bc8433c6b78d2b65012b8 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra metagelf
+# This file is sourced from elf.em, and defines extra metagelf
 # specific routines. Taken from hppaelf.em.
 #
 fragment <<EOF
index b86ef1f37e9756b9a8336eefe13c8ef8ed000ae1..736988b0cfffe1000ba3b4f9a7e3ee731be00ea5 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em and mmo.em, used to define
+# This file is sourced from elf.em and mmo.em, used to define
 # MMIX-specific things common to ELF and MMO.
 
 fragment <<EOF
index 02bb5b391e0657e3cd2030505b37bdabcef82358..0730a37467d52f7081a55bbb88dede350dc6b9c2 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em and used to define MMIX and ELF
+# This file is sourced from elf.em and used to define MMIX and ELF
 # specific things.  First include what we have in common with mmo.
 
 source_em ${srcdir}/emultempl/mmix-elfnmmo.em
index b4b4f1e725c1206c079f41afc08ea0324aaf7050..62ee144416be39005aa665bfa2b2fb21fdb459ce 100644 (file)
@@ -24,7 +24,7 @@
 fragment <<EOF
 /* Need to have this macro defined before mmix-elfnmmo, which uses the
    name for the before_allocation function, defined in ldemul.c (for
-   the mmo "emulation") or in elf32.em (for the elf64mmix
+   the mmo "emulation") or in elf.em (for the elf64mmix
    "emulation").  */
 #define gldmmo_before_allocation before_allocation_default
 
@@ -44,7 +44,7 @@ fragment <<EOF
 
 /* Place an orphan section.  We use this to put random SEC_CODE or
    SEC_READONLY sections right after MMO_TEXT_SECTION_NAME.  Much borrowed
-   from elf32.em.  */
+   from elf.em.  */
 
 static lang_output_section_statement_type *
 mmo_place_orphan (asection *s,
@@ -181,7 +181,7 @@ mmo_place_orphan (asection *s,
     return NULL;
 
   /* If there's an output section by *this* name, we'll use it, regardless
-     of actual section flags, in contrast to what's done in elf32.em.  */
+     of actual section flags, in contrast to what's done in elf.em.  */
   os = lang_insert_orphan (s, secname, 0, after, place, NULL, NULL);
 
   return os;
index 3218f3ecda938ab53d1a2253fa2537a94d3d95bd..aaa27ee0f96ba6c7cd25a4ed8942d2df2ec0a515 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em.  It is used by targets for
+# This file is sourced from elf.em.  It is used by targets for
 # which relaxation is not just an optimization, but for correctness.
 
 LDEMUL_BEFORE_ALLOCATION=need_relax_${EMULATION_NAME}_before_allocation
index 676c1fbbf7df8efbd8ecb4f3d9893300e3a0f8b6..02eb06fb5781c3a71a8549f646443773d9829086 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra Nios II ELF
+# This file is sourced from elf.em, and defines extra Nios II ELF
 # specific routines. Taken from metagelf.em.
 #
 fragment <<EOF
index eb75373224b9ec9c9ead2516197630f15593ef4c..056068edb1989bd85fda0663912edf7d9751984c 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra powerpc32-elf
+# This file is sourced from elf.em, and defines extra powerpc32-elf
 # specific routines.
 #
 fragment <<EOF
index ef1fd0e7bcaa90faf10b234e400adc947e05ecd3..6df2a20cfceb7352a90b0c4a559974650a86729a 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra powerpc64-elf
+# This file is sourced from elf.em, and defines extra powerpc64-elf
 # specific routines.
 #
 fragment <<EOF
index 299563771eb444bc4294f63b50682d57d9d66fd6..0d568fb1f2ff9f238e4523feb52e818203057e3d 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra pru-elf
+# This file is sourced from elf.em, and defines extra pru-elf
 # specific routines.
 #
 fragment <<EOF
index 685743c403f7bc7ddb7a3a669f8aa7252420d10e..d6ced64ecf179a114665f5c2e1a975a27959a89f 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra rx-elf
+# This file is sourced from elf.em, and defines extra rx-elf
 # specific routines.
 #
 test -z "$TARGET2_TYPE" && TARGET2_TYPE="rel"
index 4370c28a1234db08477e6a29eed4911ec0704abc..b200419b56862835db944242a9818a51b7d25699 100644 (file)
@@ -23,7 +23,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra score-elf
+# This file is sourced from elf.em, and defines extra score-elf
 # specific routines.
 #
 fragment <<EOF
index 54f9f8fcab68943c7d6f304c61c77792b7902aea..40a757a98902d8be4eda258cfcf2892e0b5405ca 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra spu specific
+# This file is sourced from elf.em, and defines extra spu specific
 # features.
 #
 fragment <<EOF
index a6e2792e689efdfc704f1f9b543fa35390e1fd29..9a2544aea601501d9764897d8d10613737671081 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra C6X DSBT specific
+# This file is sourced from elf.em, and defines extra C6X DSBT specific
 # features.
 #
 fragment <<EOF
index 887880d78615ffd6c774060c4154fdded0d8945a..ac7051f3b76f9b95c98f107799da2b4c46a9959d 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra cpu specific
+# This file is sourced from elf.em, and defines extra cpu specific
 # features.
 #
 fragment <<EOF
index c7e0b784b38ef63aeadee7981d99b9bac30fe186..996bb77fd80882c66623c580bb6f2d2e704ba211 100644 (file)
@@ -85,7 +85,7 @@ gld${EMULATION_NAME}_find_potential_libraries
 }
 
 /* Place an orphan section.  We use this to put random OVR sections.
-   Much borrowed from elf32.em.  */
+   Much borrowed from elf.em.  */
 
 static lang_output_section_statement_type *
 vms_place_orphan (asection *s,
index 1efb8076bde14088c7f762f8945afc071a74ec5a..20a3b9720143eb5a5976014817896fbc26cf0b8c 100644 (file)
@@ -83,7 +83,7 @@ PARSE_AND_LIST_ARGS_CASES=$PARSE_AND_LIST_ARGS_CASES'
 #
 #   (2) VXWORKS_BASE_EM_FILE set the hook's LDEMUL_FOO variable to
 #      gld${EMULATION_NAME}_foo.  This means that the file has
-#      replaced elf32.em's default definition, so we simply #define
+#      replaced elf.em's default definition, so we simply #define
 #      the current value of LDEMUL_FOO to vxworks_foo.
 #
 #   (3) VXWORKS_BASE_EM_FILE set the hook's LDEMUL_FOO variable to
index 9abbb4c96d2bfd2258a22e87c60f9eace69e6674..c826363f5c9501cf2baf1a34c1ca8d185f89eb05 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 #
 
-# This file is sourced from elf32.em, and defines extra xtensa-elf
+# This file is sourced from elf.em, and defines extra xtensa-elf
 # specific routines.
 #
 fragment <<EOF
index c88712fbe5d4ae110a3c093050600f8f59149549..d25e41762b36ed8879c4467f985cd387381158dd 100644 (file)
@@ -1,4 +1,4 @@
-/* ELF emulation code for targets using elf32.em.
+/* ELF emulation code for targets using elf.em.
    Copyright (C) 1991-2019 Free Software Foundation, Inc.
 
    This file is part of the GNU Binutils.
index 0116629dba36fe0e7664d24199baca47847be813..88ca14152fe0a4f51c6760952ead465935e3a878 100644 (file)
@@ -1,4 +1,4 @@
-/* ELF emulation code for targets using elf32.em.
+/* ELF emulation code for targets using elf.em.
    Copyright (C) 1991-2019 Free Software Foundation, Inc.
 
    This file is part of the GNU Binutils.
index e4bcaf0ef34a4bf5a7f56b713176a404572f07a1..e13969ede07eac5cd86a0f7d8058b7d41b521ae8 100644 (file)
@@ -492,7 +492,7 @@ cat <<EOF
     ${RELOCATING+*(.text.startup .text.startup.*)}
     ${RELOCATING+*(.text.hot .text.hot.*)}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } ${FILL}
index cb71b557d3ff2a623c60a843d0a1e8a338248d40..efc1f7f85daf47cd2a65f5568380f0653a16b3d2 100644 (file)
@@ -215,7 +215,7 @@ cat <<EOF
   {
     ${RELOCATING+${TEXT_START_SYMBOLS}}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } =${NOP-0}
index f9f0f7d402090e4e161e86a3ac71256a8aabd2c6..c3ad467bff42d9641a52928066d0aa28e15e1ec0 100644 (file)
@@ -515,7 +515,7 @@ cat <<EOF
     ${RELOCATING+*(.text.startup .text.startup.*)}
     ${RELOCATING+*(.text.hot .text.hot.*)}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } ${FILL}
index 0996f562ad1911933ab5dcaf2a17a25876874971..de73775349af9906b33aaee29917b8cd05d4ef0c 100644 (file)
@@ -513,7 +513,7 @@ cat <<EOF
     ${RELOCATING+*(.text.startup .text.startup.*)}
     ${RELOCATING+*(.text.hot .text.hot.*)}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } ${FILL}
index ee8fb93bba3201c1b48cb537ea87322fd98d6841..2cf5b930f07e0d65671b1655777d6a24c7352381 100644 (file)
@@ -413,7 +413,7 @@ cat <<EOF
   {
     ${RELOCATING+${TEXT_START_SYMBOLS}}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } =${NOP-0}
index 1cc63b63ddc2af55ea3feae124d4d4583c3a9f36..42aa8a021aed76cd0ef677222e95eb9df5c130c0 100644 (file)
@@ -247,7 +247,7 @@ cat <<EOF
   {
     ${RELOCATING+${TEXT_START_SYMBOLS}}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } =${NOP-0}
index 79d9924092aa2f62536a4de42d270c013b0ffe9a..0390e05fc8f831aff09fdf1dc54e3ec1a89c4c00 100644 (file)
@@ -272,7 +272,7 @@ cat <<EOF
   {
     ${RELOCATING+${TEXT_START_SYMBOLS}}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } =${NOP-0}
index 9b55333dc1369d6f2aa8c42c703412ccca8237b5..1d5b73188d45cd180bdb6db3c6350dbea376a5a8 100644 (file)
@@ -205,7 +205,7 @@ SECTIONS
     ${RELOCATING+${TEXT_START_SYMBOLS}}
 
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
 
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
index 2bf303d2039ef0f82bd61d12e8dd7ad720c7cc65..f8e5a5f76094a653c284d01a5c58051010c101d7 100644 (file)
@@ -111,7 +111,7 @@ SECTIONS
     KEEP (*(SORT_NONE(.fini.*)))}
     *(.text)
     ${RELOCATING+*(.text.*)}
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+*(.gnu.linkonce.t*)
     _etext = .;
index dc3f14eae53fee8b4a5a266be16d0811644f8c20..0eea5daf38c57c2052007827467afc3c44196f2d 100644 (file)
@@ -320,7 +320,7 @@ SECTIONS
 
     *(.text)
     ${RELOCATING+*(.text.*)}
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+*(.gnu.linkonce.t.*)}
     ${RELOCATING+*(.tramp)}
index 9f8d92aeae85735beefb0244fb59a25fb01b7547..a01f27337202a959b07e1ba7ff883ec36bda7628 100644 (file)
@@ -319,7 +319,7 @@ SECTIONS
 
     *(.text)
     ${RELOCATING+*(.text.*)}
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+*(.gnu.linkonce.t.*)}
     ${RELOCATING+*(.tramp)}
index d640882c173e73c1045160490cbf45b5cce9b95c..4ea13c8b5bf3d4472dfe63988df2b28aa81ded8b 100644 (file)
@@ -305,7 +305,7 @@ SECTIONS
 
     *(.text)
     ${RELOCATING+*(.text.*)}
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+*(.gnu.linkonce.t.*)}
     ${RELOCATING+*(.tramp)}
index fd6c0738e467b23056b8bcec8555ceca69bf4a4d..ae287557dc6b24a52763ff4463ee2dd4b9765bb6 100644 (file)
@@ -319,7 +319,7 @@ SECTIONS
 
     *(.text)
     ${RELOCATING+*(.text.*)}
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+*(.gnu.linkonce.t.*)}
     ${RELOCATING+*(.tramp)}
index e81cb98375d811059646f5715e7dd05b0e9fae7e..df680410f4e83e61c0edf0d25ea62ba9c03765ce 100644 (file)
@@ -419,7 +419,7 @@ cat <<EOF
 
     ${RELOCATING+${TEXT_START_SYMBOLS}}
     *(.literal .text .stub${RELOCATING+ .literal.* .text.* .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
 
index f86ce89dd3c8877b04cd568e406570d5576e110f..882954d0eddf671793cd63bb16b0da1858e3c493 100644 (file)
@@ -490,7 +490,7 @@ cat <<EOF
   {
     ${RELOCATING+${TEXT_START_SYMBOLS}}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } /* ${RELOCATING+ > INTERNAL_RAM} */ =${NOP-0}
index 2f988ec4aa585633171c2fd52f6e91335d0df300..999209160f075c102c209331513ffbb521561d07 100644 (file)
@@ -300,7 +300,7 @@ cat <<EOF
     *(.text)
     ${RELOCATING+*(.text.*)}
     *(.stub)
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+*(.gnu.linkonce.t.*)}
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
index 139d1b83b100af2aefeb8a0c5f29c3aa80514886..1e5a57983171e457042e4140df762a3ecbbb4667 100644 (file)
@@ -311,7 +311,7 @@ cat <<EOF
   {
     ${RELOCATING+${TEXT_START_SYMBOLS}}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } =${NOP-0}
index 97f868bceef82a6edb038de292f63ec05a26e1d1..065c984f705aa4de9b8a21b0a18d36c13f52caa5 100644 (file)
@@ -439,7 +439,7 @@ cat <<EOF
     ${RELOCATING+*(.text.startup .text.startup.*)}
     ${RELOCATING+*(.text.hot .text.hot.*)}
     *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
   } ${FILL}
index f961530d9c557a8d0e49161b4d38229893dd36e7..05b695e3ac5b2ba4ed86aefa1eb6c7545eda8d31 100644 (file)
@@ -79,7 +79,7 @@ SECTIONS
     *(.text)
     ${RELOCATING+*(.text.*)}
 
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+*(.gnu.linkonce.t*)}
   } =0
index fc1a383e195b817b7e906e7b76ecf35a6bd997eb..07d0a0536773d6c85e3d76f02986b70b77f36d12 100644 (file)
@@ -83,7 +83,7 @@ SECTIONS
     *(.text)
     ${RELOCATING+*(.text.*)}
 
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+*(.gnu.linkonce.t*)}
   } =0
index 757e0b8feab49f55dfe22b0821199c15815661c9..13a9b44979fa59a61a447e543469815ee980eb66 100644 (file)
@@ -181,7 +181,7 @@ SECTIONS
     *(.text)
     ${RELOCATING+*(.text.*)}
     *(.stub)
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     ${RELOCATING+*(.gnu.linkonce.t.*)}
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}
index 71cb4c9e18a6214bcbe40af1747ff270d0eeb912..663a0dda62f20d0422f69db0d0b901c0d02415fd 100644 (file)
@@ -54,7 +54,7 @@ SECTIONS
   {
     *(.text .stub .text.* .gnu.linkonce.t.*)
     KEEP (*(.text.*personality*))
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     *(.glue_7t) *(.glue_7)
   } =0
index f946d0a8a27b4c789fd92cca36ec50f99aec0d2a..6f87e1be154fb2c5279f1bc36228ce14cf624f97 100644 (file)
@@ -53,7 +53,7 @@ SECTIONS
   {
     *(.text .stub .text.* .gnu.linkonce.t.*)
     KEEP (*(.text.*personality*))
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     *(.glue_7t) *(.glue_7)
   } =0
index d175a3dd81e3886d721a7f49d2f6df21f37221ed..d56e8203ad836cc2bd0517d04103f8841f835108 100644 (file)
@@ -66,7 +66,7 @@ SECTIONS
     *(.text.startup .text.startup.*)
     *(.text.hot .text.hot.*)
     *(.text .stub .text.* .gnu.linkonce.t.*)
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
   }
index 4208c66665eebfa26d332753dd41661175d0c2e1..d19a589d6c6a84deacad22c0cbb70e6d9d1904cb 100644 (file)
@@ -77,7 +77,7 @@ SECTIONS
     *(.text.startup .text.startup.*)
     *(.text.hot .text.hot.*)
     *(.text .stub .text.* .gnu.linkonce.t.*)
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
   } =0
index 450d6f9e96024c17f2e3f0316643edd6f61c56ae..b1e262d8297c2013c50d2070ed4afb8ba77e4eac 100644 (file)
@@ -68,7 +68,7 @@ SECTIONS
     *(.text.startup .text.startup.*)
     *(.text.hot .text.hot.*)
     *(.text .stub .text.* .gnu.linkonce.t.*)
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
   } =0
index cf4ed422e4ac739f894d7e82fa1168b1f172513a..061bcf2b07df7f45868d336a144e135b15b23638 100644 (file)
@@ -113,7 +113,7 @@ foreach t $test_list {
 set ASFLAGS "$saved_ASFLAGS"
 
 # Check that the --out-implib option work correctly.
-# Targets that don't use elf32.em won't support this.
+# Targets that don't use elf.em won't support this.
 run_ld_link_tests [list \
     [list "Generate empty import library" \
        "--out-implib=tmpdir/implib.lib" "" \
index a6d4d642bc2637f3698a07cf30e73581fd4a95df..1343574be686bcc7dcc6db8d66b4c90438736f96 100644 (file)
@@ -2,7 +2,7 @@
 #ld: -T orphan-region.ld -N -z stack-size=0
 #readelf: -S -l --wide
 #xfail: [uses_genelf] hppa*64*-*-* spu-*-* *-*-nacl*
-# if not using elf32.em, you don't get fancy orphan handling
+# if not using elf.em, you don't get fancy orphan handling
 # spu twiddles LOAD range, hppa64 adds PHDR, nacl splits to two segments
 
 #...
index cbd64fdd8da6feab0b8ae1d523de0edd2c999d64..9219cf70e1d98b26278c303b33b68ee8840d2c8f 100644 (file)
@@ -2,7 +2,7 @@
 #ld: -T orphan.ld
 #readelf: -S --wide
 #xfail: [uses_genelf]
-# if not using elf32.em, you don't get fancy orphan handling
+# if not using elf.em, you don't get fancy orphan handling
 
 #...
   \[[ 0-9]+\] \.(text|notbad)[ \t]+PROGBITS[ \t0-9a-f]+AX?.*
index 28646535354afcac534b8a82a3cd98454f1c24fa..6de05e873cb22db2c5f5d10c6a44b8637c3a203c 100644 (file)
@@ -3,7 +3,7 @@
 #ld: -r
 #readelf: -S
 #xfail: [uses_genelf]
-# if not using elf32.em, you don't get fancy section handling
+# if not using elf.em, you don't get fancy section handling
 
 #...
 .* .abcxyz .*
index 3319fa7d8b3f24021f09c12c285c46f14b3023fc..005056ba1e05be2edd1e8bef8321824e2962d4dd 100644 (file)
@@ -4,7 +4,7 @@
 #ld: -T group.ld
 #warning: ^[^\n]*\.[obj]+: warning: function 'Foo' used$
 #readelf: -s
-# if not using elf32.em, you don't get fancy section handling
+# if not using elf.em, you don't get fancy section handling
 #xfail: [uses_genelf]
 #xfail: "sparc64-*-solaris2*" "sparcv9-*-solaris2*"
 
index cd90bcc906386684c1a435576fda63ec62b30789..b60861a8d81548932aba68a65067b163b0ca392d 100644 (file)
@@ -69,7 +69,7 @@ SECTIONS
     *(.text)
     *(.text.*)
     *(.stub)
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     *(.gnu.linkonce.t*)
   }
index bd2802fca6a202744e5a0074971f2cc738505a92..c93e1396a01ae953f39ee36405c672b686f439f8 100644 (file)
@@ -68,7 +68,7 @@ SECTIONS
     _ftext = . ;
     *(.text .stub .text.* .gnu.linkonce.t.*)
     KEEP (*(.text.*personality*))
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     *(.mips16.fn.*) *(.mips16.call.*)
   } =0
index b3a2c9726b146d1b8f57454f8b90c3ae9ffe71a1..76961fade63bb5d3312213ce64da4534aad17b26 100644 (file)
@@ -67,7 +67,7 @@ SECTIONS
     _ftext = . ;
     *(.text .stub .text.* .gnu.linkonce.t.*)
     KEEP (*(.text.*personality*))
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     *(.mips16.fn.*) *(.mips16.call.*)
   } =0
index 64cf47d6742891459421a5ee601bda6b51ad6937..c63f3a85ea76b18aa35cce1dff28f92f7b825ccd 100644 (file)
@@ -5,7 +5,7 @@ SECTIONS
   .rodata : { *(.rodata) }
 
   /* The .rel* sections are typically placed here, because of the way
-     elf32.em handles orphaned sections.  A bug introduced on 2002-06-10
+     elf.em handles orphaned sections.  A bug introduced on 2002-06-10
      would cause . to be 0 at this point.  */
 
   _bar = ASSERT (. > 0, "Bad . value");
index ee587f9fdd1a38f5ba19626db58c99abf125c35a..8f1622aaad2413384619a4ca38b29a14ae234638 100644 (file)
@@ -67,7 +67,7 @@ SECTIONS
     *(.text)
     *(.text.*)
     *(.stub)
-    /* .gnu.warning sections are handled specially by elf32.em.  */
+    /* .gnu.warning sections are handled specially by elf.em.  */
     *(.gnu.warning)
     *(.gnu.linkonce.t*)
   }