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 19990502 sourceware import 1999-05-03 07:29:11 +00:00
aix.sc 2011-11-03 Tristan Gingold <gingold@adacore.com> 2011-11-03 11:53:39 +00:00
alpha.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
alphavms.sc 2011-05-06 Tristan Gingold <gingold@adacore.com> 2011-05-06 10:44:31 +00:00
aout.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
armaout.sc Fix arm aout placement of .bss section 2001-10-11 17:28:43 +00:00
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 Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
delta68.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
dlx.sc Add DLX target 2002-05-28 14:08:47 +00:00
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 Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
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 Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
elf32xc16xl.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
elf32xc16xs.sc PR ld/6766 2009-09-13 07:19:18 +00:00
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 Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
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 Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
h8300h.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
h8300hn.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
h8300s.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
h8300sn.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
h8300sx.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
h8300sxn.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
h8500.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
h8500b.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
h8500c.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
h8500m.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
h8500s.sc 2001-01-10 Kazu Hirata <kazu@hxi.com> 2001-01-10 18:58:36 +00:00
hppaelf.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
i386beos.sc Fix spelling mistakes. 2011-06-02 13:43:24 +00:00
i386coff.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
i386go32.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
i386msdos.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
i860coff.sc 2003-08-04 Christian Groessler <chris@groessler.org> 2003-08-06 02:19:05 +00:00
i960.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
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 Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
m68kcoff.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
m88kbcs.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
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 Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
mipsbsd.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
mmo.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
moxie.sc Add new binutils target: moxie 2009-04-16 15:39:48 +00:00
nw.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
or32.sc Add support for OpenRISC 32-bit embedded processor 2002-01-31 17:33:08 +00:00
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 1999-09-04 Steve Chamberlain <sac@pobox.com> 1999-09-04 17:37:36 +00:00
ppcpe.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
psos.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
riscix.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sh.sc From "Anita Kulkarni" <AnitaK@kpit.com> 2002-09-25 17:06:09 +00:00
sparccoff.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
st2000.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
tic4xcoff.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
tic30aout.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
tic30coff.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
tic54xcoff.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
tic80coff.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
v850.sc * scripttempl/v850.sc (_heap_start): Provide. 2011-05-27 10:47:46 +00:00
vanilla.sc 19990502 sourceware import 1999-05-03 07:29:11 +00:00
w65.sc Use ${CONSTRUCTING...} to enclose constructors and destructors. 2000-11-03 19:49:05 +00:00
xstormy16.sc * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 2011-02-10 08:18:58 +00:00
z80.sc Add support for the Z80 processor family 2005-10-25 17:40:19 +00:00
z8000.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00

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.