old-cross-binutils/ld/scripttempl
Alan Modra 2edab91c10 Make assignments to dot keep an empty output section.
An assignment to dot in an output section that allocates space of
course keeps the output section.  Here, I'm changing the behaviour for
assignments that don't allocate space.  The idea is not so much to
allow people to force output of an empty section with ". = .", but
to fix cases where an otherwise empty section has padding added by an
alignment expression that changes with relaxation or .eh_frame
editing.  Such a section might have zero size before relaxation and so
be stripped incorrectly.

ld/
	* ld.texinfo (Output Section Discarding): Mention assigning to dot
	as a way of keeping otherwise empty sections.
	* ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
	is_dot_plus_0, is_align_conditional): New predicates.
	(exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
	output section, except for some special cases.
	* scripttempl/elfmicroblaze.sc: Use canonical form to align at
	end of .heap and .stack.
ld/testsuite/
	* ld-shared/elf-offset.ld: Align end of .bss with canonical form
	of ALIGN that allows an empty .bss to be removed.
	* ld-arm/arm-dyn.ld: Likewise.
	* ld-arm/arm-lib.ld: Likewise.
	* ld-elfvsb/elf-offset.ld: Likewise.
	* ld-mips-elf/mips-dyn.ld: Likewise.
	* ld-mips-elf/mips-lib.ld: Likewise.
	* ld-arm/arm-no-rel-plt.ld: Remove duplicate ALIGN.
	* ld-powerpc/vle-multiseg-1.ld: Remove ALIGN at start of section.
	ALIGN address of section instead.
	* ld-powerpc/vle-multiseg-2.ld: Likewise.
	* ld-powerpc/vle-multiseg-3.ld: Likewise.
	* ld-powerpc/vle-multiseg-4.ld: Likewise.
	* ld-powerpc/vle-multiseg-6.ld: Likewise.
	* ld-scripts/empty-aligned.d: Check section headers not program
	headers.  Remove xfail and notarget.
	* ld-scripts/empty-aligned.t: Use canonical ALIGN for end of .text2.
2014-01-22 11:58:29 +10:30
..
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 * scripttempl/alphavms.sc: Add .debug_macro section. 2012-06-29 07:58:46 +00:00
aout.sc
armaout.sc
armbpabi.sc ld/ 2013-04-28 14:52:55 +00:00
armcoff.sc * scripttempl/armcoff.sc: Revert 2010-09-22 change. 2010-09-24 04:41:12 +00:00
avr.sc * scripttempl/avr.sc: Set .data section's LMA to next available 2013-11-22 12:00:55 +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
DWARF.sc * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from 2013-04-29 13:38:59 +00:00
elf.sc * scripttempl/elf.sc: Handle function names and other 2013-07-08 17:07:15 +00:00
elf32cr16.sc ld/ 2013-04-28 14:52:55 +00:00
elf32cr16c.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
elf32crx.sc ld/ 2013-04-28 14:52:55 +00:00
elf32msp430.sc * scripttempl/elf32msp430.sc (.data): Set the based on the next 2013-11-20 16:51:21 +00:00
elf32msp430_3.sc * scripttempl/elf32msp430.sc (.data): Set the based on the next 2013-11-20 16:51:21 +00:00
elf32sh-symbian.sc ld/ 2013-04-28 14:52:55 +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 ld/ 2013-04-28 14:52:55 +00:00
elf_chaos.sc ld/ 2013-04-28 14:52:55 +00:00
elfd10v.sc ld/ 2013-04-28 14:52:55 +00:00
elfd30v.sc ld/ 2013-04-28 14:52:55 +00:00
elfi370.sc ld/ 2013-04-28 14:52:55 +00:00
elfm68hc11.sc ld/ 2013-04-28 14:52:55 +00:00
elfm68hc12.sc ld/ 2013-04-28 14:52:55 +00:00
elfmicroblaze.sc Make assignments to dot keep an empty output section. 2014-01-22 11:58:29 +10:30
elfxgate.sc ld/ 2013-04-28 14:52:55 +00:00
elfxtensa.sc ld/ 2013-04-28 14:52:55 +00:00
epiphany_4x4.sc ld/ 2013-04-28 14:52:55 +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
h8500b.sc
h8500c.sc
h8500m.sc
h8500s.sc
hppaelf.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
i386beos.sc ld/ 2013-04-28 14:52:55 +00:00
i386coff.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
i386go32.sc ld/ 2013-04-28 14:52:55 +00:00
i386msdos.sc
i860coff.sc
i960.sc
ia64vms.sc 2013-07-08 Tristan Gingold <gingold@adacore.com> 2013-07-08 13:02:21 +00:00
ip2k.sc ld/ 2013-04-28 14:52:55 +00:00
iq2000.sc ld/ 2013-04-28 14:52:55 +00:00
m68kaux.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
m68kcoff.sc
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 ld/ 2013-04-28 14:52:55 +00:00
mips.sc ld/ 2012-08-06 22:40:36 +00:00
mipsbsd.sc
mmo.sc ld/ 2013-04-28 14:52:55 +00:00
moxie.sc Add new binutils target: moxie 2009-04-16 15:39:48 +00:00
nds32elf.sc Add support for Andes NDS32: 2013-12-13 11:52:32 +00:00
nw.sc Revert 2009-09-28 changes. 2009-10-10 04:34:39 +00:00
or32.sc
pe.sc ChangeLog bfd 2012-10-18 17:42:29 +00:00
pep.sc * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section. 2013-02-15 11:08:01 +00:00
pj.sc
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
README Add copyright notices 2012-12-17 16:56:12 +00:00
riscix.sc
sh.sc
sparccoff.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
st2000.sc
tic4xcoff.sc Only provide ENTRY on final link. 2009-09-09 11:59:14 +00:00
tic30aout.sc
tic30coff.sc
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 ld/ 2013-04-28 14:52:55 +00:00
v850_rh850.sc ld/ 2013-04-28 14:52:55 +00:00
vanilla.sc
w65.sc
xstormy16.sc ld/ 2013-04-28 14:52:55 +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

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 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.