binutils-gdb/ld/testsuite/ld-elf
Alan Modra 8ded5a0fc3 bfd/
* elf-bfd.h: Formatting.
	(_bfd_elf_map_sections_to_segments): Declare.
	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame_hdr): Don't
	clear program_header_size.
	* elf.c (get_program_header_size): Move.  Don't use or set saved
	program_header_size here.
	(elf_modify_segment_map): New function.  Split out from..
	(assign_file_positions_for_load_sections): ..here.  Assert
	header size is correct.  Remove dead code.
	(_bfd_elf_map_sections_to_segments): Rename from
	map_sections_to_segments.  Make global.  Use get_program_header_size
	when we need estimate of header size.  Call elf_modify_segment_map.
	Set program_header_size.
	(print_segment_map): Delete.
	(_bfd_elf_sizeof_headers): If segment_map available, get the
	actual size.
	* elf32-arm.c (elf32_arm_symbian_modify_segment_map): Make safe
	for calling more than once.
	* elf32-bfin.c (elf32_bfinfdpic_modify_segment_map): Likewise.
	* elf32-frv.c (elf32_frvfdpic_modify_segment_map): Likewise.
	* elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Likewise.
	* elf32-i370.c (elf_backend_add_symbol_hook): Delete.
	(elf_backend_additional_program_headers): Delete.
	(elf_backend_modify_segment_map): Delete.
	* elf64-hppa.c (elf64_hppa_modify_segment_map): Convert to ISO C.
	* elfxx-ia64.c (elfNN_ia64_modify_segment_map): Likewise.
	* doc/bfdint.texi: Delete SIZEOF_HEADERS difficulties.
ld/
	* Makefile.am (ELF_DEPS): Define.  Use in emul file deps.  Fix
	many ELF emul file deps that incorrectly said they needed elf32.em
	instead of generic.em.  Add genelf.em as required.
	* Makefile.in: Regenerate.
	* ldlang.c (lang_process): Call ldemul_finish before
	lang_check_section_addresses.
	* emulparams/arcelf.sh: Generic elf target needs genelf.
	* emulparams/d30v_e.sh: Likewise.
	* emulparams/d30v_o.sh: Likewise.
	* emulparams/d30velf.sh: Likewise.
	* emulparams/elf32_dlx.sh: Likewise.
	* emulparams/elf32_i860.sh: Likewise.
	* emulparams/elf32fr30.sh: Likewise.
	* emulparams/elf32frv.sh: Likewise.
	* emulparams/elf32iq10.sh: Likewise.
	* emulparams/elf32iq2000.sh: Likewise.
	* emulparams/elf32mt.sh: Likewise.
	* emulparams/mn10200.sh: Likewise.
	* emulparams/or32.sh: Likewise.
	* emulparams/or32elf.sh: Likewise.
	* emulparams/pjelf.sh: Likewise.
	* emulparams/msp430all.sh: Likewise.  Extract common entries.
	* emulparams/pjlelf.sh: Include pjelf.sh.
	* emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
	* emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
	* emultempl/elf-generic.em: New file.
	* emultempl/genelf.em: New file.
	* emultempl/elf32.em: Include elf-generic.em.
	(gld${EMULATION_NAME}_layout_sections_again): Delete.
	(gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
	* emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
	(gld${EMULATION_NAME}_finish): Rename from hppaelf_finish.  Call
	gld${EMULATION_NAME}_map_segments.
	(LDEMUL_FINISH): Update.
	* emultempl/mmo.em: Correct comment.  Include elf-bfd.h and
	source elf-generic.em.
	(mmo_finish): Call gld${EMULATION_NAME}_map_segments.
	* emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
	(gld${EMULATION_NAME}_finish): Rename from ppc_finish.  Call
	gld${EMULATION_NAME}_map_segments.
	(LDEMUL_FINISH): Update.
ld/testsuite/
	* ld-elf/eh1.d: Update for fewer program headers.
	* ld-elf/eh2.d: Likewise.
	* ld-elf/eh3.d: Likewise.
2006-06-20 02:22:16 +00:00
..
binutils.exp include/elf/ 2006-06-01 05:40:24 +00:00
commonpage1.d include/elf/ 2006-06-01 05:40:24 +00:00
eh1.d bfd/ 2006-06-20 02:22:16 +00:00
eh1.s 2006-05-23 H.J. Lu <hongjiu.lu@intel.com> 2006-05-24 02:39:16 +00:00
eh1a.s 2006-05-23 H.J. Lu <hongjiu.lu@intel.com> 2006-05-24 02:39:16 +00:00
eh2.d bfd/ 2006-06-20 02:22:16 +00:00
eh2a.s 2006-05-23 H.J. Lu <hongjiu.lu@intel.com> 2006-05-24 02:39:16 +00:00
eh3.d bfd/ 2006-06-20 02:22:16 +00:00
eh3.s 2006-05-23 H.J. Lu <hongjiu.lu@intel.com> 2006-05-24 02:39:16 +00:00
eh3a.s 2006-05-23 H.J. Lu <hongjiu.lu@intel.com> 2006-05-24 02:39:16 +00:00
elf.exp binutils/testsuite/ 2005-11-15 08:32:02 +00:00
empty2.d * ld-elf/empty2.d: Allow more symbols. 2005-10-26 07:53:15 +00:00
empty2.s ld/testsuite/ 2005-10-24 07:48:47 +00:00
empty.d bfd/ 2005-04-13 16:44:08 +00:00
empty.s * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
exclude1.s gas/ 2005-02-21 08:39:53 +00:00
exclude2.s 2004-10-19 H.J. Lu <hongjiu.lu@intel.com> 2004-10-19 17:14:38 +00:00
exclude.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
fini.c 2005-07-14 H.J. Lu <hongjiu.lu@intel.com> 2005-07-14 17:02:11 +00:00
fini.out 2005-07-14 H.J. Lu <hongjiu.lu@intel.com> 2005-07-14 17:02:11 +00:00
frame.exp * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
frame.s Fixes for assembling with an ARM targeted version of GAS 2004-05-18 16:18:56 +00:00
group1.d * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
group1a.s 2004-12-01 Paul Brook <paul@codesourcery.com> 2004-12-01 23:23:12 +00:00
group1b.s 2004-12-01 Paul Brook <paul@codesourcery.com> 2004-12-01 23:23:12 +00:00
group2.d binutils/testsuite/ 2005-10-20 17:06:41 +00:00
group.ld 2004-12-01 Paul Brook <paul@codesourcery.com> 2004-12-01 23:23:12 +00:00
init.c 2005-07-14 H.J. Lu <hongjiu.lu@intel.com> 2005-07-14 17:02:11 +00:00
init.out 2005-07-14 H.J. Lu <hongjiu.lu@intel.com> 2005-07-14 17:02:11 +00:00
maxpage1.d include/elf/ 2006-06-01 05:40:24 +00:00
maxpage1.s include/elf/ 2006-06-01 05:40:24 +00:00
maxpage2.d include/elf/ 2006-06-01 05:40:24 +00:00
merge2.d * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
merge2.s * ld-elf/merge2.s: New. 2003-09-10 23:35:40 +00:00
merge.d * ld-elf/merge.d: Xfail bfin. 2005-09-30 15:24:21 +00:00
merge.ld
merge.s
orphan2.d 2005-12-19 H.J. Lu <hongjiu.lu@intel.com> 2005-12-19 15:07:28 +00:00
orphan2.s 2005-12-18 H.J. Lu <hongjiu.lu@intel.com> 2005-12-18 23:50:41 +00:00
orphan.d * ld-elf/orphan.d: Adjust for mips. 2005-10-24 23:06:19 +00:00
orphan.ld * ld-elf/orphan.ld: Add placement for MIPS .reginfo section. 2006-05-16 13:58:51 +00:00
orphan.s 2005-10-21 H.J. Lu <hongjiu.lu@intel.com> 2005-10-21 21:18:05 +00:00
preinit.c 2005-07-14 H.J. Lu <hongjiu.lu@intel.com> 2005-07-14 17:02:11 +00:00
preinit.out 2005-07-14 H.J. Lu <hongjiu.lu@intel.com> 2005-07-14 17:02:11 +00:00
sec64k.exp * ld-elf/sec64k.exp: Add "main" symbol. Use dc.a for addresses. 2006-06-05 12:53:50 +00:00
stab.d 2006-05-14 H.J. Lu <hongjiu.lu@intel.com> 2006-05-15 00:48:44 +00:00
start.s * ld-elf/sec64k.exp: Add "main" symbol. Use dc.a for addresses. 2006-06-05 12:53:50 +00:00
symbol1ref.s * ld-elf/start.s, ld-elf/symbolref.s, ld-elf/symbol1w.s, 2005-02-07 02:46:15 +00:00
symbol1w.s 2005-02-11 Paul Brook <paul@codesourcery.com> 2005-02-11 17:01:17 +00:00
table.s Fixes for assembling with an ARM targeted version of GAS 2004-05-18 16:18:56 +00:00
tbss1.s include/elf/ 2006-06-01 05:40:24 +00:00
tbss2.s include/elf/ 2006-06-01 05:40:24 +00:00
tbss.s gas/testsuite/ 2005-03-22 14:20:38 +00:00
tdata1.s include/elf/ 2006-06-01 05:40:24 +00:00
tdata2.s include/elf/ 2006-06-01 05:40:24 +00:00
unknown2.d * ld-elf/unknown2.d: Only run for *-*-linux*. 2005-12-19 11:59:15 +00:00
unknown2.s 2005-12-18 H.J. Lu <hongjiu.lu@intel.com> 2005-12-18 16:21:49 +00:00
unknown.d binutils/testsuite/ 2005-10-20 17:06:41 +00:00
warn1.d * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00