binutils-gdb/ld/scripttempl
H.J. Lu b7761f1106 Support arch-dependent fill
bfd/

2012-01-31  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/13616
	* archures.c (bfd_arch_info): Add fill.
	(bfd_default_arch_struct): Add bfd_arch_default_fill.
	(bfd_arch_default_fill): New.

	* configure.in: Set bfd version to 2.22.52.
	* configure: Regenerated.

	* cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
	initializer.
	* cpu-arc.c: Likewise.
	* cpu-arm.c: Likewise.
	* cpu-avr.c: Likewise.
	* cpu-bfin.c: Likewise.
	* cpu-cr16.c: Likewise.
	* cpu-cr16c.c: Likewise.
	* cpu-cris.c: Likewise.
	* cpu-crx.c: Likewise.
	* cpu-d10v.c: Likewise.
	* cpu-d30v.c: Likewise.
	* cpu-dlx.c: Likewise.
	* cpu-epiphany.c: Likewise.
	* cpu-fr30.c: Likewise.
	* cpu-frv.c: Likewise.
	* cpu-h8300.c: Likewise.
	* cpu-h8500.c: Likewise.
	* cpu-hppa.c: Likewise.
	* cpu-i370.c: Likewise.
	* cpu-i860.c: Likewise.
	* cpu-i960.c: Likewise.
	* cpu-ia64.c: Likewise.
	* cpu-ip2k.c: Likewise.
	* cpu-iq2000.c: Likewise.
	* cpu-lm32.c: Likewise.
	* cpu-m10200.c: Likewise.
	* cpu-m10300.c: Likewise.
	* cpu-m32c.c: Likewise.
	* cpu-m32r.c: Likewise.
	* cpu-m68hc11.c: Likewise.
	* cpu-m68hc12.c: Likewise.
	* cpu-m68k.c: Likewise.
	* cpu-m88k.c: Likewise.
	* cpu-mcore.c: Likewise.
	* cpu-mep.c: Likewise.
	* cpu-microblaze.c: Likewise.
	* cpu-mips.c: Likewise.
	* cpu-mmix.c: Likewise.
	* cpu-moxie.c: Likewise.
	* cpu-msp430.c: Likewise.
	* cpu-mt.c: Likewise.
	* cpu-ns32k.c: Likewise.
	* cpu-openrisc.c: Likewise.
	* cpu-or32.c: Likewise.
	* cpu-pdp11.c: Likewise.
	* cpu-pj.c: Likewise.
	* cpu-plugin.c: Likewise.
	* cpu-powerpc.c: Likewise.
	* cpu-rl78.c: Likewise.
	* cpu-rs6000.c: Likewise.
	* cpu-rx.c: Likewise.
	* cpu-s390.c: Likewise.
	* cpu-score.c: Likewise.
	* cpu-sh.c: Likewise.
	* cpu-sparc.c: Likewise.
	* cpu-spu.c: Likewise.
	* cpu-tic30.c: Likewise.
	* cpu-tic4x.c: Likewise.
	* cpu-tic54x.c: Likewise.
	* cpu-tic6x.c: Likewise.
	* cpu-tic80.c: Likewise.
	* cpu-tilegx.c: Likewise.
	* cpu-tilepro.c: Likewise.
	* cpu-v850.c: Likewise.
	* cpu-vax.c: Likewise.
	* cpu-w65.c: Likewise.
	* cpu-we32k.c: Likewise.
	* cpu-xc16x.c: Likewise.
	* cpu-xstormy16.c: Likewise.
	* cpu-xtensa.c: Likewise.
	* cpu-z80.c: Likewise.
	* cpu-z8k.c: Likewise.

	* cpu-i386.c: Include "libiberty.h".
	(bfd_arch_i386_fill): New.
	Add bfd_arch_i386_fill to  bfd_arch_info initializer.

	* cpu-k1om.c: Add bfd_arch_i386_fill to  bfd_arch_info initializer.
	* cpu-l1om.c: Likewise.

	* linker.c (default_data_link_order): Call abfd->arch_info->fill
	if fill size is 0.

	* bfd-in2.h: Regenerated.

include/

2012-01-31  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/13616
	* bfdlink.h (bfd_link_order): Update comments on data size.

ld/

2012-01-31  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/13616
	* emulparams/elf32_x86_64.sh: Remove NOP.
	* 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_k1om.sh: Likewise.
	* emulparams/elf_l1om.sh: Likewise.
	* emulparams/elf_x86_64.sh: Likewise.

	* ldlang.c (zero_fill): Initialized to 0.

	* ldwrite.c (build_link_order): Set data size to linker odrder
	size when they are the same.

	* scripttempl/elf.sc: Don't specify fill if NOP is undefined.

ld/testsuite/

2012-01-31  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/13616
	* ld-i386/tlsbindesc.dd: Update no-op padding.
	* ld-i386/tlsnopic.dd: Likewise.
	* ld-i386/tlspic.dd: Likewise.
	* ld-x86-64/tlsbin.dd: Likewise.
	* ld-x86-64/tlsbindesc.dd: Likewise.
	* ld-x86-64/tlspic.dd: Likewise.
2012-01-31 17:54:39 +00:00
..
README
aix.sc 2011-11-03 Tristan Gingold <gingold@adacore.com> 2011-11-03 11:53:39 +00:00
alpha.sc
alphavms.sc 2011-05-06 Tristan Gingold <gingold@adacore.com> 2011-05-06 10:44:31 +00:00
aout.sc
armaout.sc
armbpabi.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
armcoff.sc * scripttempl/armcoff.sc: Revert 2010-09-22 change. 2010-09-24 04:41:12 +00:00
avr.sc 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com> 2011-03-21 20:07:42 +00:00
crisaout.sc
delta68.sc
dlx.sc
elf.sc Support arch-dependent fill 2012-01-31 17:54:39 +00:00
elf32cr16.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elf32cr16c.sc
elf32crx.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elf32msp430.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elf32msp430_3.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elf32sh-symbian.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elf32xc16x.sc
elf32xc16xl.sc
elf32xc16xs.sc
elf64hppa.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elf_chaos.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elfd10v.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elfd30v.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elfi370.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elfm68hc11.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elfm68hc12.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
elfmicroblaze.sc
elfxtensa.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
epocpe.sc Fix spelling mistakes. 2011-06-02 13:43:24 +00:00
h8300.sc
h8300h.sc
h8300hn.sc
h8300s.sc
h8300sn.sc
h8300sx.sc
h8300sxn.sc
h8500.sc
h8500b.sc
h8500c.sc
h8500m.sc
h8500s.sc
hppaelf.sc
i386beos.sc Fix spelling mistakes. 2011-06-02 13:43:24 +00:00
i386coff.sc
i386go32.sc
i386msdos.sc
i860coff.sc
i960.sc
ip2k.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
iq2000.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
m68kaux.sc
m68kcoff.sc
m88kbcs.sc
mcorepe.sc Fix spelling mistakes. 2011-06-02 13:43:24 +00:00
mep.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
mips.sc
mipsbsd.sc
mmo.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
moxie.sc
nw.sc
or32.sc
pe.sc * scripttempl/pe.sc (.text): Add support for 2011-09-27 15:59:55 +00:00
pep.sc * scripttempl/pe.sc (.text): Add support for 2011-09-27 15:59:55 +00:00
pj.sc
ppcpe.sc
psos.sc
riscix.sc
sh.sc
sparccoff.sc
st2000.sc
tic4xcoff.sc
tic30aout.sc
tic30coff.sc
tic54xcoff.sc
tic80coff.sc
v850.sc * scripttempl/v850.sc (_heap_start): Provide. 2011-05-27 10:47:46 +00:00
vanilla.sc
w65.sc
xstormy16.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
z80.sc
z8000.sc

README

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.