binutils-gdb/ld/scripttempl
Jakub Jelinek 36af4a4e51 bfd/
* elflink.h (elf_link_add_object_symbols): Use !info->executable
	instead of info->shared where appropriate.
	(bfd_elfNN_size_dynamic_sections, elf_link_output_extsym): Likewise.
	* elflink.c (_bfd_elf_create_got_section): Likewise.
	(_bfd_elf_link_create_dynamic_sections): Likewise.
	(_bfd_elf_link_assign_sym_version): Likewise.
	* elf32-i386.c (elf_i386_size_dynamic_sections): Create .interp section
	and DT_DEBUG dynamic tag even for position independent executables.
	* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
	* elf32-s390.c (elf_s390_size_dynamic_sections: Likewise.
	* elf64-ppc.c (ppc64_elf_size_dynamic_sections: Likewise.
	* elf64-s390.c (elf_s390_size_dynamic_sections: Likewise.
	* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections: Likewise.
	* elfxx-ia64.c (elfNN_ia64_size_dynamic_sections: Likewise.
	* elf32-sparc.c (elf32_sparc_size_dynamic_sections: Likewise.
	* elf64-alpha.c (elf64_alpha_size_dynamic_sections: Likewise.
	* elf64-sparc.c (sparc64_elf_size_dynamic_sections: Likewise.
include/
	* bfdlink.h (struct bfd_link_info): Add pie and executable
	bits.
ld/
	* lexsup.c (OPTION_PIE): Define.
	(ld_options): Add -pie and --pic-executable options.
	(parse_args): Handle OPTION_PIE.
	* ldmain.c (main): Initialize link_info.pie and
	link_info.executable.
	* genscripts.sh: Generate PIE scripts.
	* ld.texinfo: Document -pie and --pic-executable options.
	* emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
	(gld${EMULATION_NAME}_place_orphan): Likewise.
	(gld${EMULATION_NAME}_get_script): Include PIE scripts.
	* scripttempl/elf.sc: In PIE scripts set . the same way as in
	shared scripts.
	* emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
	* emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
	* emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
	* emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
	* emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
	* emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
	* emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
	* emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
	* emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
	* emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
	* emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
2003-05-30 15:50:12 +00:00
..
a29k.sc
aix.sc * emulparams/elf64ppc.sh (DATA_ADDR): Define. 2002-09-24 04:02:03 +00:00
alpha.sc
aout.sc
armaout.sc
armcoff.sc Add iWMMXt support 2003-03-25 20:56:01 +00:00
avr.sc
crisaout.sc * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and 2003-04-14 13:03:17 +00:00
delta68.sc
dlx.sc
ebmon29k.sc
elf32avr.sc
elf32msp430_3.sc Add initX, finiX, ctors, dtors sections to respect C++ constructor/destructor. 2003-04-09 11:07:51 +00:00
elf32msp430.sc Add initX, finiX, ctors, dtors sections to respect C++ constructor/destructor. 2003-04-09 11:07:51 +00:00
elf_chaos.sc * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and 2003-04-14 13:03:17 +00:00
elf.sc bfd/ 2003-05-30 15:50:12 +00:00
elfd10v.sc * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and 2003-04-14 13:03:17 +00:00
elfd30v.sc * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and 2003-04-14 13:03:17 +00:00
elfi370.sc
elfm68hc11.sc * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN, 2002-10-13 09:29:35 +00:00
elfm68hc12.sc * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN, 2002-10-13 09:29:35 +00:00
elfxtensa.sc * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and 2003-04-14 13:03:17 +00:00
epocpe.sc
h8300.sc Add support for h8300hn and h8300sn 2003-04-24 12:36:08 +00:00
h8300h.sc
h8300hn.sc oops - omitted from previous delta 2003-04-24 15:25:24 +00:00
h8300s.sc
h8300sn.sc oops - omitted from previous delta 2003-04-24 15:25:24 +00:00
h8500.sc
h8500b.sc
h8500c.sc
h8500m.sc
h8500s.sc
hppaelf.sc
i386beos.sc
i386coff.sc
i386go32.sc * scripttempl/i386go32.sc: Handle bss unique sections. 2002-09-23 11:36:15 +00:00
i386lynx.sc
i386msdos.sc
i960.sc
ip2k.sc
iq2000.sc * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and 2003-04-14 13:03:17 +00:00
m68kaux.sc
m68kcoff.sc
m68klynx.sc
m88kbcs.sc
mcorepe.sc
mips.sc
mipsbsd.sc
mmo.sc * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and 2003-04-14 13:03:17 +00:00
nw.sc
or32.sc
pe.sc * scripttempl/pe.sc: Use PROVIDE with etext, end, _end, 2003-03-03 02:38:10 +00:00
pj.sc
ppcpe.sc
psos.sc
README
riscix.sc
sa29200.sc
sh.sc From "Anita Kulkarni" <AnitaK@kpit.com> 2002-09-25 17:06:09 +00:00
sparccoff.sc
sparclynx.sc
st2000.sc
tic4xcoff.sc Namespace cleanup for the tic4x target. Replace s/c4x/tic4x/ and s/c3x/tic3x/. 2003 copyright update 2003-04-04 08:15:15 +00:00
tic30aout.sc
tic30coff.sc
tic54xcoff.sc
tic80coff.sc
v850.sc Add EXTERN references to __ctbpm __gp and __ep. 2002-09-02 17:03:30 +00:00
vanilla.sc
w65.sc
xstormy16.sc Define __data and __rdata 2003-04-18 08:26:17 +00:00
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.