old-cross-binutils/ld/emultempl
H.J. Lu 5fe2850dd9 Set DF_1_PIE in gld${EMULATION_NAME}_after_parse
We can't add OPTION_PIE to gld${EMULATION_NAME}_handle_option since
it has been handled in parse_args in lexsup.c.  This patch moves
setting DF_1_PIE to gld${EMULATION_NAME}_after_parse.

ld/

	* emultempl/alphaelf.em (alpha_after_parse): Call
	gld${EMULATION_NAME}_after_parse instead of
	after_parse_default.
	* emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
	* emultempl/crxelf.em (crxelf_after_parse); Likewise.
	* emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
	* emultempl/mipself.em (mips_after_parse): Likewise.
	* emultempl/nds32elf.em (nds32_elf_after_parse): Likewise.
	* emultempl/elf32.em: Don't include ldlex.h.
	(gld${EMULATION_NAME}_after_parse): New function.
	(gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
	<OPTION_PIE>: Removed.
	(ld_${EMULATION_NAME}_emulation): Replace after_parse_default
	with gld${EMULATION_NAME}_after_parse.
	* emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse):
	Renamed to ...
	(ia64elf_after_parse): This.  Call
	gld${EMULATION_NAME}_after_parse instead of after_parse_default.
	(LDEMUL_AFTER_PARSE): Replace gld${EMULATION_NAME}_after_parse
	with ia64elf_after_parse.

ld/testsuite/

	* ld-elf/pie.d: New test.
2015-09-22 06:08:55 -07:00
..
aarch64elf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
aix.em Remove link_info.pic 2015-08-19 12:53:54 +09:30
alphaelf.em Set DF_1_PIE in gld${EMULATION_NAME}_after_parse 2015-09-22 06:08:55 -07:00
armcoff.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
armelf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
astring.sed
avrelf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
beos.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
bfin.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
cr16elf.em Set DF_1_PIE in gld${EMULATION_NAME}_after_parse 2015-09-22 06:08:55 -07:00
crxelf.em Set DF_1_PIE in gld${EMULATION_NAME}_after_parse 2015-09-22 06:08:55 -07:00
elf-generic.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
elf32.em Set DF_1_PIE in gld${EMULATION_NAME}_after_parse 2015-09-22 06:08:55 -07:00
epiphanyelf_4x4.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
genelf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
generic.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
gld960.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
gld960c.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
hppaelf.em Set DF_1_PIE in gld${EMULATION_NAME}_after_parse 2015-09-22 06:08:55 -07:00
ia64elf.em Set DF_1_PIE in gld${EMULATION_NAME}_after_parse 2015-09-22 06:08:55 -07:00
irix.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
linux.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
lnk960.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
m68hc1xelf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
m68kcoff.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
m68kelf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
metagelf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
mipself.em Set DF_1_PIE in gld${EMULATION_NAME}_after_parse 2015-09-22 06:08:55 -07:00
mmix-elfnmmo.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mmixelf.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mmo.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
msp430.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
nds32elf.em Set DF_1_PIE in gld${EMULATION_NAME}_after_parse 2015-09-22 06:08:55 -07:00
needrelax.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
netbsd.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
nios2elf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
ostring.sed
pe.em Remove link_info.pic 2015-08-19 12:53:54 +09:30
pep.em Remove link_info.pic 2015-08-19 12:53:54 +09:30
ppc32elf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
ppc64elf.em Add PowerPC64 ld --tls-get-addr-optimize. 2015-09-18 16:38:03 +09:30
README ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
rxelf.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
scoreelf.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
sh64elf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
solaris2.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
spu_icache.o_c Regenerate spu overlay and icache manager files 2014-11-04 22:36:13 +10:30
spu_icache.S
spu_ovl.o_c Regenerate spu overlay and icache manager files 2014-11-04 22:36:13 +10:30
spu_ovl.S ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
spuelf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
sunos.em Remove link_info.pic 2015-08-19 12:53:54 +09:30
tic6xdsbt.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
ticoff.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
v850elf.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
vanilla.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
vms.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
vxworks.em Add output_type to bfd_link_info 2015-08-18 05:51:19 -07:00
xtensaelf.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
z80.em ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30

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 sourced by genscripts.sh, after
setting some variables to substitute in, to produce
C source files that contain jump tables for each emulation.

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.