binutils-gdb/ld/scripttempl
Nick Clifton 5063daf735 This patch adds a default manifest in to the final links performed by the Cygwin and MinGW targets.
The manifest is necessary in order for the linked binaries to be executed in a Windows 8 environment.

The manifest is added using a linker script so that this feature will be compiler-neutral.  The resource
merging code in the linker means that if an application provides its own manifest then the default
manifest will be ignored.

	* configure.in (all_emul_extra_binaries): New variable.  Populated
	by invoking configure.tgt.
	(EMUL_EXTRA_BINARIES): New substitution.
	* configure: Regenerate.
	* configure.tgt (target_extra_binaries): New variable.  Set to
	default-manifest.o for Cygwin and MinGW targets.
	* Makefile.am (EMUL_EXTRA_BINARIES): New variable.  Initialised
	by the configure script.
	(ALL_EMUL_EXTRA_BINARIES): New variable.
	(default-manifest.o): New rule to build the default manifest.
	(ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
	(install-data-local): Add EMUL_EXTRA_BINARIES.
	* Makefile.in: Regenerate.
	* ld.texinfo: Document default manifest support.
	* emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
	* emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
	* emultempl/default-manifest.rc: New file.
	* scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
	* scripttempl/pep.sc (R_RSRC): Likewise.

	* ld-pe/longsecn-1.d: Allow for extra sections.
	* ld-pe/longsecn-2.d: Likewise.
	* ld-pe/longsecn.d: Likewise.
	* ld-pe/secrel.d: Likewise.
2014-02-27 14:13:43 +00:00
..
DWARF.sc * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from 2013-04-29 13:38:59 +00:00
README
aix.sc
alpha.sc
alphavms.sc
aout.sc
armaout.sc
armbpabi.sc ld/ 2013-04-28 14:52:55 +00:00
armcoff.sc
avr.sc * scripttempl/avr.sc: Set .data section's LMA to next available 2013-11-22 12:00:55 +00:00
crisaout.sc
delta68.sc
dlx.sc
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
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
elf32xc16xl.sc
elf32xc16xs.sc
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
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 ld/ 2013-04-28 14:52:55 +00:00
i386coff.sc
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
m68kcoff.sc
m88kbcs.sc
mcorepe.sc
mep.sc ld/ 2013-04-28 14:52:55 +00:00
mips.sc
mipsbsd.sc
mmo.sc ld/ 2013-04-28 14:52:55 +00:00
moxie.sc
nds32elf.sc Add support for Andes NDS32: 2013-12-13 11:52:32 +00:00
nw.sc
or32.sc
pe.sc This patch adds a default manifest in to the final links performed by the Cygwin and MinGW targets. 2014-02-27 14:13:43 +00:00
pep.sc This patch adds a default manifest in to the final links performed by the Cygwin and MinGW targets. 2014-02-27 14:13:43 +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 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
z8000.sc

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