binutils-gdb/ld/scripttempl
Kai Tietz 0f088b2a94 Add experimental support for --gc-sections with COFF and PE based targets.
PR ld/11539
bfd	* coffcode.h (coff_bfd_gc_sections): Define default
	to bfd_coff_gc_sections function.
	* cofflink.c (init_reloc_cookie): Copy and adjust coff
	related code about gc-sections from elflink.c to here.
	(fini_reloc_cookie): Likewise.
	(init_reloc_cookie_rels): Likewise.
	(fini_reloc_cookie_rels): Likewise.
	(init_reloc_cookie_for_section): Likewise.
	(fini_reloc_cookie_for_section): Likewise.
	(_bfd_coff_gc_mark_hook): Likewise.
	(_bfd_coff_gc_mark_rsec): Likewise.
	(_bfd_coff_gc_mark_reloc): Likewise.
	(_bfd_coff_gc_mark): Likewise.
	(_bfd_coff_gc_mark_extra_sections): Likewise.
	(coff_gc_sweep_symbol_info): Likewise.
	(coff_gc_sweep_symbol): Likewise.
	(gc_sweep_hook_fn): Likewise.
	(coff_gc_sweep): Likewise.
	(bfd_coff_gc_sections): Likewise.
	(_bfd_coff_gc_keep): Likewise.
	* libcoff.h (coff_reloc_cookie): New struct.
	(bfd_coff_gc_sections): New prototype.
	(coff_gc_mark_hook_fn): New type.

ld	* scripttempl/pep.sc: Mark .idata*, .CRT*, .tls*,
	.rsrc*, .init, .ctor*, .dtor*, .fini, .jcr,
	.eh_frame, .pdata. .xdata, and .gcc_except_table sections
	as KEEP.
	* scripttempl/pe.sc: Likewise.
2015-07-03 15:50:29 +01:00
..
DWARF.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
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 This patch modifies the AVR linker script templates to use __<name>_REGION_LENGTH__ symbols, if provided, for setting memory region lengths, defaulting to the current constant values otherwise. 2015-02-24 11:26:28 +00:00
avrtiny.sc This patch modifies the AVR linker script templates to use __<name>_REGION_LENGTH__ symbols, if provided, for setting memory region lengths, defaulting to the current constant values otherwise. 2015-02-24 11:26:28 +00:00
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
elf.sc Compact EH Support 2015-05-28 15:21:17 -07:00
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 Add support to the MSP430 linker for the automatic placement of code and data into either low or high memory regions. 2015-05-05 13:38:00 +01:00
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
ft32.sc FT32 initial support 2015-01-28 16:25:18 +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 Add experimental support for --gc-sections with COFF and PE based targets. 2015-07-03 15:50:29 +01:00
pep.sc Add experimental support for --gc-sections with COFF and PE based targets. 2015-07-03 15:50:29 +01:00
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
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 Adds support for generating notes in V850 binaries. 2015-02-24 17:54:09 +00:00
v850_rh850.sc Adds support for generating notes in V850 binaries. 2015-02-24 17:54:09 +00:00
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

README

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.