old-cross-binutils/ld/emulparams
Jakub Jelinek 8c37241be3 bfd/
* elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
	into .dynsym if elf_section_data (sec)->dynindx <= 0.
	Adjust counting of last_local.
	(_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
	other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
	created by the linker nor !SHF_ALLOC.

	* elf32-i386.c (elf_i386_finish_dynamic_sections): Point
	DT_PLTGOT to the start of the .got.plt section instead of the
	.got output section.  Set sh_entsize for .got section in addition
	to .got.plt.
	(elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
	is at sgot->output_section->vma.
	* elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
	DT_PLTGOT to the start of the .got.plt section instead of the
	.got output section.
	(elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
	is at sgot->output_section->vma.  Set sh_entsize for .got section
	in addition to .got.plt.
	* elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
	(bfd_section_from_phdr): Likewise.
	(map_sections_to_segments): Likewise.
	(assign_file_positions_for_segments): Likewise.
	(get_program_header_size): Likewise.
	* elflink.c (bfd_elf_size_dynamic_sections): Set
	elf_tdata (output_bfd)->relro from info->relro.
	* elf-bfd.h (struct elf_obj_tdata): Add relro field.
include/
	* bfdlink.h (struct bfd_link_info): Add relro, relro_start and
	relro_end fields.
	* elf/common.h (PT_GNU_EH_FRAME, PT_GNU_STACK): Add comments.
	(PT_GNU_RELRO): Define.
binutils/
	* readelf.c (get_segment_type): Handle PT_GNU_RELRO.
ld/
	* genscripts.sh: Generate -z combreloc -z now -z relro scripts
	for binaries, -shared and -pie.
	* emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
	* emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
	* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
	(OTHER_RELRO_SECTIONS): ... this.
	* ldlex.l (DATA_SEGMENT_RELRO_END): Add.
	* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
	-z relro and -z norelro.
	(gld${EMULATION_NAME}_list_options): Add it to usage.
	(gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
	-z relro scripts when appropriate.
	* scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
	Create separate .got.plt section if SEPARATE_GOTPLT.
	Move sections which are only written during relocation handling
	to the beginning of RW segment.  If NO_SMALL_DATA, move .got
	before .data.  Add DATA_SEGMENT_RELRO_END directive.
	Include OTHER_RELRO_SECTIONS.
	* ldgram.y (DATA_SEGMENT_RELRO_END): Add.
	* ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
	(fold_unary): Likewise.
	(fold_binary): Handle -z relro.
	* ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
	exp_dataseg_relro_adjust phases.  Add relro_end field.
	* ldmain.c (main): Initialize link_info.relro to FALSE.
	* ldlang.c (lang_size_sections): Handle -z relro.
ld/testsuite/
	* ld-i386/tlspic.rd: Adjust for section reordering changes
	and removal of unneeded STT_SECTION symbols from .dynsym.
	* ld-i386/tlspic.dd: Likewise.
	* ld-i386/tlspic.sd: Likewise.
	* ld-i386/tlsbin.rd: Likewise.
	* ld-i386/tlsbinpic.s: Likewise.
	* ld-i386/tlsbin.dd: Likewise.
	* ld-i386/tlsbin.sd: Likewise.
	* ld-i386/tlsnopic.rd: Likewise.
	* ld-i386/tlsnopic1.s: Likewise.
	* ld-i386/combreloc.d: Likewise.
	* ld-i386/tlsnopic.dd: Likewise.
	* ld-i386/tlsnopic.sd: Likewise.
	* ld-x86-64/tlspic.rd: Likewise.
	* ld-x86-64/tlspic.dd: Likewise.
	* ld-x86-64/tlsbin.dd: Likewise.
	* ld-x86-64/tlspic.sd: Likewise.
	* ld-x86-64/tlsbin.sd: Likewise.
	* ld-x86-64/tlspic.td: Likewise.
	* ld-x86-64/tlsbin.td: Likewise.
	* ld-x86-64/tlsbin.rd: Likewise.
	* ld-s390/tlspic1.s: Likewise.
	* ld-s390/tlsbinpic.s: Likewise.
	* ld-s390/tlspic.rd: Likewise.
	* ld-s390/tlsbin.rd: Likewise.
	* ld-s390/tlspic.dd: Likewise.
	* ld-s390/tlsbin.dd: Likewise.
	* ld-s390/tlsbin.sd: Likewise.
	* ld-s390/tlsbin.td: Likewise.
	* ld-s390/tlspic.sd: Likewise.
	* ld-s390/tlspic.td: Likewise.
	* ld-s390/tlspic1_64.s: Likewise.
	* ld-s390/tlsbinpic_64.s: Likewise.
	* ld-s390/tlspic_64.rd: Likewise.
	* ld-s390/tlsbin_64.rd: Likewise.
	* ld-s390/tlspic_64.dd: Likewise.
	* ld-s390/tlsbin_64.dd: Likewise.
	* ld-s390/tlspic_64.sd: Likewise.
	* ld-s390/tlspic_64.td: Likewise.
	* ld-s390/tlsbin_64.td: Likewise.
	* ld-s390/tlsbin_64.sd: Likewise.
	* ld-powerpc/tlsexe32.r: Likewise.
	* ld-powerpc/tlsso32.r: Likewise.
	* ld-powerpc/tlsso32.d: Likewise.
	* ld-powerpc/tlsso32.g: Likewise.
	* ld-powerpc/tlsso32.t: Likewise.
	* ld-powerpc/tlsexe.r: Likewise.
	* ld-powerpc/tlsso.r: Likewise.
	* ld-powerpc/tlsso.g: Likewise.
	* ld-powerpc/tlsexetoc.r: Likewise.
	* ld-powerpc/tlstocso.r: Likewise.
	* ld-powerpc/tlstocso.g: Likewise.
	* ld-ia64/tlspic.rd: Likewise.
	* ld-ia64/tlspic.dd: Likewise.
	* ld-ia64/tlspic.sd: Likewise.
	* ld-ia64/tlspic.td: Likewise.
	* ld-ia64/tlsbin.rd: Likewise.
	* ld-ia64/tlsbin.sd: Likewise.
	* ld-ia64/tlsbin.td: Likewise.
	* ld-elfvsb/elfvsb.exp: XFAIL non-PIC load offset tests on s390x.
	* ld-shared/shared.exp: Likewise.
2004-05-11 17:08:38 +00:00
..
a29k.sh
aix5ppc.sh
aix5rs6.sh
aixppc.sh
aixrs6.sh
alpha.sh
arcelf.sh
arm_epoc_pe.sh
armaoutb.sh
armaoutl.sh
armcoff.sh
armelf.sh * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move 2004-02-09 18:06:20 +00:00
armelf_fbsd.sh
armelf_linux.sh * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move 2004-02-09 18:06:20 +00:00
armelf_nbsd.sh
armelf_oabi.sh * emulparams/armelf.sh: Define NO_SMALL_DATA. 2003-10-09 14:06:07 +00:00
armelfb.sh * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o. 2003-05-09 20:05:04 +00:00
armelfb_linux.sh * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o. 2003-05-09 20:05:04 +00:00
armelfb_nbsd.sh
armnbsd.sh
armnto.sh * emulparams/armelf.sh: Define NO_SMALL_DATA. 2003-10-09 14:06:07 +00:00
armpe.sh Define RELOCATEABLE_OUTPUT_FORMAT 2003-12-04 17:51:43 +00:00
avr1.sh
avr2.sh
avr3.sh
avr4.sh
avr5.sh
coff_i860.sh 2003-08-04 Christian Groessler <chris@groessler.org> 2003-08-06 02:19:05 +00:00
coff_sparc.sh
crisaout.sh
criself.sh
crislinux.sh
d10velf.sh
d30v_e.sh
d30v_o.sh
d30velf.sh
delta68.sh
ebmon29k.sh
elf32_dlx.sh
elf32_i860.sh * emulparams/elf32_i860.sh (TEXT_START_ADDR): Define. 2003-11-04 23:08:03 +00:00
elf32_i960.sh
elf32_sparc.sh bfd/ 2003-05-30 15:50:12 +00:00
elf32am33lin.sh 2001-08-22 Alexandre Oliva <aoliva@redhat.com> 2003-07-10 04:45:16 +00:00
elf32b4300.sh s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify 2002-11-30 08:39:46 +00:00
elf32bmip.sh [ bfd/ChangeLog ] 2004-04-21 20:52:31 +00:00
elf32bmipn32-defs.sh * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard 2004-02-14 11:45:25 +00:00
elf32bmipn32.sh * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix. 2004-04-08 14:52:44 +00:00
elf32bsmip.sh * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix. 2004-04-08 14:52:44 +00:00
elf32btsmip.sh
elf32btsmipn32.sh * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB. 2004-02-09 17:54:25 +00:00
elf32cr16c.sh Add (linker) support for CR16C processor 2004-03-30 14:04:32 +00:00
elf32ebmip.sh
elf32elmip.sh
elf32fr30.sh
elf32frv.sh 2003-11-28 Alexandre Oliva <aoliva@redhat.com> 2004-01-06 19:19:52 +00:00
elf32frvfd.sh * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new 2004-05-06 02:46:54 +00:00
elf32i370.sh
elf32ip2k.sh * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define. 2003-08-29 00:34:27 +00:00
elf32iq10.sh * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o. 2003-01-04 02:04:44 +00:00
elf32iq2000.sh * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o. 2003-01-04 02:04:44 +00:00
elf32l4300.sh
elf32lmip.sh
elf32lppc.sh
elf32lppcnto.sh
elf32lppcsim.sh
elf32lsmip.sh
elf32ltsmip.sh
elf32ltsmipn32.sh
elf32mcore.sh Convert to C90 2003-06-28 05:28:54 +00:00
elf32mipswindiss.sh Switch to ELF targeted VxWorks targets 2003-10-30 09:47:15 +00:00
elf32openrisc.sh
elf32ppc.sh bfd/ 2004-05-11 17:08:38 +00:00
elf32ppc_fbsd.sh
elf32ppclinux.sh
elf32ppcnto.sh
elf32ppcsim.sh
elf32ppcwindiss.sh
elf32vax.sh
elf32xstormy16.sh
elf32xtensa.sh * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS, 2003-10-07 23:30:20 +00:00
elf64_aix.sh * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup. 2003-01-06 16:14:01 +00:00
elf64_ia64.sh * emulparams/elf64_ia64.sh: Put .rela.opd into 2004-01-24 16:29:40 +00:00
elf64_ia64_fbsd.sh Fix building for FreeBSD 2003-11-28 08:47:07 +00:00
elf64_s390.sh bfd/ 2004-05-11 17:08:38 +00:00
elf64_sparc.sh bfd/ 2003-05-30 15:50:12 +00:00
elf64_sparc_fbsd.sh
elf64alpha.sh bfd/ 2003-05-30 15:50:12 +00:00
elf64alpha_fbsd.sh
elf64alpha_nbsd.sh
elf64bmip.sh * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix. 2004-04-08 14:52:44 +00:00
elf64btsmip.sh * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Move 2003-10-13 19:48:39 +00:00
elf64hppa.sh * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup. 2003-01-06 16:14:01 +00:00
elf64lppc.sh
elf64ltsmip.sh
elf64mmix.sh
elf64ppc.sh * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching. 2003-07-28 03:33:48 +00:00
elf_fbsd.sh
elf_i386.sh bfd/ 2004-05-11 17:08:38 +00:00
elf_i386_be.sh
elf_i386_chaos.sh
elf_i386_fbsd.sh
elf_i386_ldso.sh
elf_s390.sh bfd/ 2004-05-11 17:08:38 +00:00
elf_x86_64.sh bfd/ 2004-05-11 17:08:38 +00:00
elf_x86_64_fbsd.sh
gld960.sh * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use 2003-10-16 08:46:35 +00:00
gld960coff.sh * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use 2003-10-16 08:46:35 +00:00
h8300.sh
h8300elf.sh
h8300h.sh
h8300helf.sh
h8300hn.sh oops - omitted from previous delta 2003-04-24 15:25:24 +00:00
h8300hnelf.sh oops - omitted from previous delta 2003-04-24 15:25:24 +00:00
h8300s.sh
h8300self.sh
h8300sn.sh oops - omitted from previous delta 2003-04-24 15:25:24 +00:00
h8300snelf.sh oops - omitted from previous delta 2003-04-24 15:25:24 +00:00
h8300sx.sh 2003-06-03 Michael Snyder <msnyder@redhat.com> 2003-06-03 21:43:52 +00:00
h8300sxelf.sh 2003-06-03 Michael Snyder <msnyder@redhat.com> 2003-06-03 21:43:52 +00:00
h8300sxn.sh include/elf/ 2003-06-10 07:09:31 +00:00
h8300sxnelf.sh include/elf/ 2003-06-10 07:09:31 +00:00
h8500.sh
h8500b.sh
h8500c.sh
h8500m.sh
h8500s.sh
hp3hpux.sh
hp300bsd.sh
hppa64linux.sh
hppaelf.sh
hppalinux.sh
hppanbsd.sh Change target of hppa-netbsd port 2003-10-06 11:01:36 +00:00
hppaobsd.sh Change target of hppa-netbsd port 2003-10-06 11:01:36 +00:00
i386aout.sh
i386beos.sh
i386bsd.sh
i386coff.sh
i386go32.sh
i386linux.sh
i386lynx.sh
i386mach.sh
i386moss.sh
i386msdos.sh
i386nbsd.sh
i386nto.sh
i386nw.sh
i386pe.sh
i386pe_posix.sh
lnk960.sh * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use 2003-10-16 08:46:35 +00:00
m32relf.sh
m32relf_linux.sh Add support for m32r-linux target, including a RELA ABI and PIC. 2003-12-19 11:44:01 +00:00
m32rlelf.sh Add support for m32r-linux target, including a RELA ABI and PIC. 2003-12-19 11:44:01 +00:00
m32rlelf_linux.sh Add support for m32r-linux target, including a RELA ABI and PIC. 2003-12-19 11:44:01 +00:00
m68hc11elf.sh * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra. 2003-04-21 13:29:05 +00:00
m68hc11elfb.sh * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra. 2003-04-21 13:29:05 +00:00
m68hc12elf.sh * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra. 2003-04-21 13:29:05 +00:00
m68hc12elfb.sh * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra. 2003-04-21 13:29:05 +00:00
m68k4knbsd.sh
m68kaout.sh
m68kaux.sh
m68kcoff.sh
m68kelf.sh
m68kelfnbsd.sh
m68klinux.sh
m68klynx.sh
m68knbsd.sh
m68kpsos.sh
m88kbcs.sh * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use 2003-10-16 08:46:35 +00:00
mcorepe.sh
mipsbig.sh
mipsbsd.sh
mipsidt.sh [ bfd/ChangeLog ] 2004-04-21 20:52:31 +00:00
mipsidtl.sh [ bfd/ChangeLog ] 2004-04-21 20:52:31 +00:00
mipslit.sh
mipslnews.sh
mipspe.sh
mmo.sh
mn10200.sh
mn10300.sh 2001-04-17 Alexandre Oliva <aoliva@redhat.com> 2003-07-10 03:20:26 +00:00
msp430all.sh * Makefile.am (GENSCRIPTS_EXTRA): New script definition which calls 2003-08-15 17:04:48 +00:00
news.sh
ns32knbsd.sh
or32.sh
or32elf.sh
pc532macha.sh
pdp11.sh
pjelf.sh
pjlelf.sh
ppcmacos.sh
ppcnw.sh
ppcpe.sh
README
riscix.sh
sa29200.sh
sh.sh
shelf.sh * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack 2003-07-30 02:22:07 +00:00
shelf32.sh * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack 2003-07-30 02:22:07 +00:00
shelf32_linux.sh * Makefile.am: Add eshelf32_linux.o and 2002-10-09 19:09:59 +00:00
shelf32_nbsd.sh [ld] 2003-10-13 05:09:21 +00:00
shelf64.sh * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack 2003-07-30 02:22:07 +00:00
shelf64_nbsd.sh
shelf_linux.sh
shelf_nbsd.sh
shelf_nto.sh
shl.sh
shlelf.sh
shlelf32.sh
shlelf32_linux.sh * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes. 2003-06-03 04:51:49 +00:00
shlelf32_nbsd.sh
shlelf64.sh
shlelf64_nbsd.sh
shlelf_linux.sh * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB. 2004-02-09 17:54:25 +00:00
shlelf_nbsd.sh
shlelf_nto.sh
shpe.sh
sparcaout.sh
sparclinux.sh
sparclynx.sh
sparcnbsd.sh
st2000.sh
sun3.sh
sun4.sh
tic3xcoff.sh 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
tic3xcoff_onchip.sh 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
tic4xcoff.sh 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.sh
tic30coff.sh
tic54xcoff.sh
tic80coff.sh
v850.sh
vanilla.sh * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use 2003-10-16 08:46:35 +00:00
vax.sh
vaxnbsd.sh
vsta.sh
w65.sh
xtensa-config.sh * emulparams/xtensa-config.sh: Remove comment indicating that this is 2003-04-02 16:56:56 +00:00
z8001.sh
z8002.sh

The files in this directory are read by genscripts.sh as shell commands.
They set parameters for the emulations.