old-cross-binutils/ld/scripttempl
Alan Modra 23283c1be0 Reorder more powerpc64 sections for -z relro
This moves .got too, which requires .sdata and .sbss to move with it,
because these sections share addressing via the toc pointer and with
small-model code must be within a 16-bit signed offset.  .plt, .iplt
and .branch_lt must also be moved since they are addressed via a
32-bit offset from the toc pointer, and we might have a very large
.data section.

This change means we may have some bss style sections before the data
segment, necessitating another PT_LOAD header.  Also, since _edata is
defined at the end of the data segment it's possible with an empty
.data to have _edata at the end of .plt which looks a little unusual
since .plt is a bss style section.  That should only happen rarely in
real world binaries, but does occur in the ld testsuite.

ld/
	* emulparams/elf64ppc.sh (BSS_PLT): Don't define.
	(OTHER_READWRITE_SECTIONS): Move .branch_lt to..
	(OTHER_RELRO_SECTIONS_2): ..here.
	(DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
	PLT_BEFORE_GOT): Define.
	* scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
	PLT_BEFORE_GOT combination.
	(DATA_GOT, SDATA_GOT): Don't define if either is already defined.
ld/testsuite/
	* ld-powerpc/ambiguousv1.d,
	* ld-powerpc/ambiguousv1b.d,
	* ld-powerpc/ambiguousv2.d,
	* ld-powerpc/ambiguousv2b.d,
	* ld-powerpc/elfv2exe.d,
	* ld-powerpc/elfv2so.d,
	* ld-powerpc/tlsexe.r,
	* ld-powerpc/tlsexetoc.r,
	* ld-powerpc/tlsso.r,
	* ld-powerpc/tlstocso.r: Update.
2015-01-20 19:52:42 +10:30
..
aix.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
alpha.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
alphavms.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
aout.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
armaout.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
armbpabi.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
armcoff.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
avr.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
avrtiny.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
crisaout.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
delta68.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
dlx.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
DWARF.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf.sc Reorder more powerpc64 sections for -z relro 2015-01-20 19:52:42 +10:30
elf32cr16.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf32cr16c.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf32crx.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf32msp430.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf32msp430_3.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf32sh-symbian.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf32xc16x.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf32xc16xl.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf32xc16xs.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf64hppa.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elf_chaos.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfd10v.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfd30v.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfi370.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfm68hc11.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfm68hc12.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfmicroblaze.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfxgate.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfxtensa.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
epiphany_4x4.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
epocpe.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8300.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8300h.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8300hn.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8300s.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8300sn.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8300sx.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8300sxn.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8500.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8500b.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8500c.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8500m.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
h8500s.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
hppaelf.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i386beos.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i386coff.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i386go32.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i386msdos.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i860coff.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i960.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
ia64vms.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
ip2k.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
iq2000.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
m68kaux.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
m68kcoff.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
m88kbcs.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mcorepe.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mep.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mips.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mipsbsd.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mmo.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
moxie.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
nds32elf.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
nw.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
pe.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
pep.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
pj.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
ppcpe.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
psos.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
README ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
riscix.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
sh.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
sparccoff.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
st2000.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic4xcoff.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic30aout.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic30coff.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic54xcoff.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic80coff.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
v850.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
v850_rh850.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
vanilla.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
visium.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
w65.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
xstormy16.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
z80.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
z8000.sc ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +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-2015 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.