old-cross-binutils/ld/scripttempl
H.J. Lu 02ecc8e968 Add SORT_BY_INIT_PRIORITY.
bfd/

2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>

	* elf.c (_bfd_elf_new_section_hook): Special handling for
	.init_array/.fini_array output sections.

ld/

2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>

	* Makefile.am (GENSCRIPTS): Add @enable_initfini_array@.

	* NEWS: Mention SORT_BY_INIT_PRIORITY.

	* configure.in: Add AC_CANONICAL_BUILD.
	Add --enable-initfini-array.

	* genscripts.sh (ENABLE_INITFINI_ARRAY): New.

	* ld.h (sort_type): Add by_init_priority.

	* ld.texinfo: Document SORT_BY_INIT_PRIORITY.

	* ldgram.y (SORT_BY_INIT_PRIORITY): New.
	(wildcard_spec): Handle SORT_BY_INIT_PRIORITY.

	* ldlang.c (get_init_priority): New.
	(compare_section): Use get_init_priority for by_init_priority.

	* ldlex.l (SORT_BY_INIT_PRIORITY): New.

	* scripttempl/elf.sc: Support ENABLE_INITFINI_ARRAY.

	* Makefile.in: Regenerated.
	* aclocal.m4: Regenerated.
	* config.in: Likewise.
	* configure: Likewise.

ld/testsuite/

2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-elf/elf.exp (array_tests): Add init-mixed.
	(array_tests_static): Likewise.
	Also delete tmpdir/init-mixed.

	* ld-elf/init-mixed.c: New.
	* ld-elf/init-mixed.out: Likewise.
2010-12-15 14:56:40 +00:00
..
aix.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
alpha.sc
alphavms.sc bfd/ 2010-06-01 09:52:28 +00:00
aout.sc
armaout.sc
armbpabi.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
armcoff.sc * scripttempl/armcoff.sc: Revert 2010-09-22 change. 2010-09-24 04:41:12 +00:00
avr.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
crisaout.sc
delta68.sc
dlx.sc
elf.sc Add SORT_BY_INIT_PRIORITY. 2010-12-15 14:56:40 +00:00
elf32cr16.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elf32cr16c.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
elf32crx.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elf32msp430.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elf32msp430_3.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elf32sh-symbian.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elf32xc16x.sc
elf32xc16xl.sc
elf32xc16xs.sc
elf64hppa.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elf_chaos.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elfd10v.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elfd30v.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elfi370.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elfm68hc11.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elfm68hc12.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
elfmicroblaze.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
elfxtensa.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
epocpe.sc
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
i386coff.sc
i386go32.sc
i386msdos.sc
i860coff.sc
i960.sc
ip2k.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
iq2000.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
m68kaux.sc
m68kcoff.sc
m88kbcs.sc
mcorepe.sc
mep.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
mips.sc
mipsbsd.sc
mmo.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
moxie.sc
nw.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
or32.sc
pe.sc bfd/ 2010-11-04 16:03:25 +00:00
pep.sc bfd/ 2010-11-04 16:03:25 +00:00
pj.sc
ppcpe.sc
psos.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
README
riscix.sc
sh.sc
sparccoff.sc
st2000.sc
tic4xcoff.sc
tic30aout.sc
tic30coff.sc
tic54xcoff.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
tic80coff.sc
v850.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
vanilla.sc
w65.sc
xstormy16.sc Include compressed DWARF debug sections in ELF linker scripts. 2010-11-02 13:47:44 +00:00
z80.sc
z8000.sc

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.