binutils-gdb/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
empty2.d
empty2.s
empty.d
empty.s
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
exclude1.s
exclude2.s
exclude.exp
fini.c
fini.out
foo.c bfd/ 2006-07-12 15:45:33 +00:00
foo.map bfd/ 2006-07-12 15:45:33 +00:00
frame.exp
frame.s
group1.d
group1a.s
group1b.s
group2.d
group.ld
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
init.out
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
loadaddr.s 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
merge2.d
merge2.s
merge.d Add support for Score target. 2006-09-16 23:51:50 +00:00
merge.ld
merge.s
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
orphan2.d bfd/ 2006-10-17 13:41:49 +00:00
orphan2.s
orphan.d bfd/ 2006-10-17 13:41:49 +00:00
orphan.ld
orphan.s
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
preinit.out
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
start.s * ld-elf/sec64k.exp: Add "main" symbol. Use dc.a for addresses. 2006-06-05 12:53:50 +00:00
symbol1ref.s
symbol1w.s
table.s
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
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
unknown2.d
unknown2.s
unknown.d
warn1.d