old-cross-binutils/ld/testsuite/ld-elf
Alan Modra 74541ad4c0 bfd/
* elf-bfd.h (struct elf_link_hash_table): Reorder.  Add
	text_index_section and data_index_section.
	(struct elf_backend_data): Add elf_backend_init_index_section.
	(_bfd_elf_init_1_index_section): Declare.
	(_bfd_elf_init_2_index_sections): Declare.
	* elfxx-target.h (elf_backend_init_index_section): Define.
	(elfNN_bed): Init new field.
	* elflink.c (_bfd_elf_link_omit_section_dynsym): Keep first tls
	section and text_index_section plus data_index_section.
	(_bfd_elf_link_renumber_dynsyms): Clear dynindx on omitted sections.
	(_bfd_elf_init_1_index_section): New function.
	(_bfd_elf_init_2_index_sections): New function.
	(bfd_elf_size_dynsym_hash_dynstr): Call elf_backend_init_index_section.
	(elf_link_input_bfd): When emitting relocs, use text_index_section
	and data_index_section for removed sections.
	* elf-m10300.c (elf_backend_omit_section_dynsym): Define.
	* elf32-i386.c: Likewise.
	* elf32-m32r.c: Likewise.
	* elf32-sh.c: Likewise.
	* elf32-xstormy16.c: Likewise.
	* elf32-xtensa.c: Likewise.
	* elf64-alpha.c: Likewise.
	* elf64-hppa.c: Likewise.
	* elf64-mmix.c: Likewise.
	* elf64-sh64.c: Likewise.
	* elfxx-ia64.c: Likewise.
	* elf32-arm.c (elf32_arm_final_link_relocate): Use text_index_section
	and data_index_section sym for relocs against sections with no dynamic
	section sym.
	(elf_backend_init_index_section): Define.
	* elf32-cris.c: Similarly.
	* elf32-hppa.c: Similarly.
	* elf32-i370.c: Similarly.
	* elf32-m68k.c: Similarly.
	* elf32-mips.c: Similarly.
	* elf32-ppc.c: Similarly.
	* elf32-s390.c: Similarly.
	* elf32-sparc.c: Similarly.
	* elf32-vax.c: Similarly.
	* elf64-mips.c: Similarly.
	* elf64-ppc.c: Similarly.
	* elf64-s390.c: Similarly.
	* elf64-sparc.c: Similarly.
	* elf64-x86-64.c: Similarly.
	* elfn32-mips.c: Similarly.
	* elfxx-mips.c: Similarly.
	* elfxx-sparc.c: Similarly.
	* linker.c (fix_syms): Base symbols in removed sections on
	previous section in preference to using absolute section.

ld/
	* ldlang.c (strip_excluded_output_sections): Do strip sections
	that define syms, but don't ignore them.
	* ld.texinfo (Output Section Discarding): Revise.
	* emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call
	finish_default.

ld/testsuite/
	Update for section sym changes.
2006-10-17 13:41:49 +00:00
..
begin.c bfd/ 2006-07-12 15:45:33 +00:00
binutils.exp bfd/ 2006-08-17 02:04:53 +00:00
commonpage1.d include/elf/ 2006-06-01 05:40:24 +00:00
dl1.c bfd/ 2006-09-07 17:16:34 +00:00
dl1.list bfd/ 2006-09-07 17:16:34 +00:00
dl1.out bfd/ 2006-09-07 17:16:34 +00:00
dl1main.c bfd/ 2006-09-07 17:16:34 +00:00
dl2.c bfd/ 2006-09-07 17:16:34 +00:00
dl2.list bfd/ 2006-09-07 17:16:34 +00:00
dl2a.out bfd/ 2006-09-07 17:16:34 +00:00
dl2b.out bfd/ 2006-09-07 17:16:34 +00:00
dl2main.c bfd/ 2006-09-07 17:16:34 +00:00
dl2xxx.c bfd/ 2006-09-07 17:16:34 +00:00
dl2xxx.list bfd/ 2006-09-07 17:16:34 +00:00
dl3.cc bfd/ 2006-09-07 17:16:34 +00:00
dl3.list bfd/ 2006-09-07 17:16:34 +00:00
dl3a.out bfd/ 2006-09-07 17:16:34 +00:00
dl3b.out bfd/ 2006-09-07 17:16:34 +00:00
dl3header.h bfd/ 2006-09-07 17:16:34 +00:00
dl3main.cc bfd/ 2006-09-07 17:16:34 +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
eh4.d * elf-bfd.h (struct eh_cie_fde): Add set_loc pointer. 2006-10-03 13:15:39 +00:00
eh4.s * elf-bfd.h (struct eh_cie_fde): Add set_loc pointer. 2006-10-03 13:15:39 +00:00
eh4a.s * elf-bfd.h (struct eh_cie_fde): Add set_loc pointer. 2006-10-03 13:15:39 +00:00
elf.exp binutils/testsuite/ 2005-11-15 08:32:02 +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
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
end.c bfd/ 2006-07-12 15:45:33 +00:00
endhidden.c bfd/ 2006-07-12 15:45:33 +00:00
endprotected.c bfd/ 2006-07-12 15:45:33 +00:00
exclude.exp Update FSF addresses 2005-05-12 07:32:09 +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
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
foo.c bfd/ 2006-07-12 15:45:33 +00:00
foo.map bfd/ 2006-07-12 15:45:33 +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
group.ld 2004-12-01 Paul Brook <paul@codesourcery.com> 2004-12-01 23:23:12 +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
hash.d 2006-09-15 H.J. Lu <hongjiu.lu@intel.com> 2006-09-15 14:55:42 +00:00
hidden.out bfd/ 2006-07-12 15:45:33 +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
loadaddr.s 2006-09-15 H.J. Lu <hongjiu.lu@intel.com> 2006-09-15 14:48:46 +00:00
loadaddr1.d 2006-09-15 H.J. Lu <hongjiu.lu@intel.com> 2006-09-15 14:48:46 +00:00
loadaddr1.t 2006-08-23 H.J. Lu <hongjiu.lu@intel.com> 2006-08-23 14:45:30 +00:00
loadaddr2.d 2006-09-15 H.J. Lu <hongjiu.lu@intel.com> 2006-09-15 14:48:46 +00:00
loadaddr2.t 2006-08-23 H.J. Lu <hongjiu.lu@intel.com> 2006-08-23 14:45:30 +00:00
loadaddr3.t New tests. 2006-08-29 01:24:17 +00:00
loadaddr3a.d 2006-09-15 H.J. Lu <hongjiu.lu@intel.com> 2006-09-15 14:48:46 +00:00
loadaddr3b.d 2006-09-15 H.J. Lu <hongjiu.lu@intel.com> 2006-09-15 14:48:46 +00:00
main.c bfd/ 2006-07-12 15:45:33 +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
merge.d Add support for Score target. 2006-09-16 23:51:50 +00:00
merge.ld
merge.s
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
noload-1.d ld/ 2006-08-01 17:50:52 +00:00
noload-1.s ld/ 2006-08-01 17:50:52 +00:00
noload-1.t ld/ 2006-08-01 17:50:52 +00:00
normal.out bfd/ 2006-07-12 15:45:33 +00:00
orphan.d bfd/ 2006-10-17 13:41:49 +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
orphan2.d bfd/ 2006-10-17 13:41:49 +00:00
orphan2.s 2005-12-18 H.J. Lu <hongjiu.lu@intel.com> 2005-12-18 23:50:41 +00:00
overlay.d 2006-08-23 H.J. Lu <hongjiu.lu@intel.com> 2006-08-23 14:43:56 +00:00
overlay.s 2006-08-23 H.J. Lu <hongjiu.lu@intel.com> 2006-08-23 14:43:56 +00:00
overlay.t 2006-08-23 H.J. Lu <hongjiu.lu@intel.com> 2006-08-23 14:43:56 +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
shared.exp bfd/ 2006-09-07 17:16:34 +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
tbss.s gas/testsuite/ 2005-03-22 14:20:38 +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
tdata1.s include/elf/ 2006-06-01 05:40:24 +00:00
tdata2.s include/elf/ 2006-06-01 05:40:24 +00:00
tls_common.exp * ld-elf/tls_common.exp: Match 32-bit output. 2006-06-21 05:36:17 +00:00
tls_common.s * elflink.c (elf_link_add_object_symbols): Don't create .tcommon 2006-06-20 16:36:18 +00:00
unknown.d binutils/testsuite/ 2005-10-20 17:06:41 +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
warn1.d * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00