binutils-gdb/ld/scripttempl
Alan Modra c2e863866d ld -r script fixes
For ld -r, we generally set the VMA of sections to zero.  This is done
to make the output of ld -r most similar to that output by the
assembler, which generally has sections starting at VMA zero.  In some
cases that covers for backend bugs which would mis-handle relocatable
object files with non-zero section VMAs.

This patch fixes a few sections that didn't have zero VMAs for ld -r.
A missing zero on .note.gnu.build-id and .eh_frame_hdr doesn't matter
much since these are linker generated symbols only output on final
link, but it's good to be consistent.

	* Makefile.am (ei386beos.c, ei386go32.c): Correct dependencies.
	* Makefile.in: Regenerate.
	* scripttempl/elf.sc (.note.gnu.build-id, .eh_frame_hdr): Set
	address with ${RELOCATING-0}.
	* scripttempl/arclinux.sc: Likewise.
	* scripttempl/armbpabi.sc: Likewise.
	* scripttempl/avr.sc: Likewise.
	* scripttempl/elf64hppa.sc: Likewise.
	* scripttempl/elf_chaos.sc: Likewise.
	* scripttempl/elfarc.sc: Likewise.
	* scripttempl/elfxtensa.sc: Likewise.
	* scripttempl/mep.sc: Likewise.
	* scripttempl/nds32elf.sc: Likewise.
	* scripttempl/pru.sc: Likewise.
	* scripttempl/elf32msp430.sc: Likewise, and for other sections.
	* scripttempl/epiphany_4x4.sc: Similarly.
2018-10-29 17:50:40 +10:30
..
aix.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
alpha.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
alphavms.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
aout.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
arclinux.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
armbpabi.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
avr.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
crisaout.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
dlx.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
DWARF.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elf32cr16.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elf32cr16c.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elf32crx.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elf32msp430_3.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elf32msp430.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
elf32xc16x.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elf32xc16xl.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elf32xc16xs.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elf64hppa.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
elf_chaos.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
elf.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
elfarc.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
elfarcv2.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elfd10v.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elfd30v.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elfm9s12z.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elfm68hc11.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elfm68hc12.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elfmicroblaze.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elfxgate.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
elfxtensa.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
epiphany_4x4.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
ft32.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
hppaelf.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
i386beos.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
i386go32.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
i386msdos.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
ia64vms.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
ip2k.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
iq2000.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
mcorepe.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
mep.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
mips.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
mipsbsd.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
mmo.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
moxie.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
nds32elf.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
pe.sc Explain what happens for PE targeted linkers in the case where the user actually tries to provide __CTOR_LIST__ and/or __DTOR_LIST__ symbols. 2018-08-07 08:45:14 +01:00
pep.sc Explain what happens for PE targeted linkers in the case where the user actually tries to provide __CTOR_LIST__ and/or __DTOR_LIST__ symbols. 2018-08-07 08:45:14 +01:00
pj.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
ppcpe.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
pru.sc ld -r script fixes 2018-10-29 17:50:40 +10:30
README Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
sh.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
tic4xcoff.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
tic30aout.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
tic30coff.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
tic54xcoff.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
tic80coff.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
v850_rh850.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
v850.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
vanilla.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
visium.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
xstormy16.sc ELF ld -r scripts 2018-10-13 20:33:23 +10:30
z80.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
z8000.sc Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

The files in this directory are linker script templates.
genscripts.sh sets some shell variables, then sources
EMULATION.sc, to generate EMULATION.{x,xr,xu,xn,xbn} -- the script
files for default, -r, -Ur, -n, -N.

Copyright (C) 2012-2018 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.