binutils-gdb/ld/testsuite/ld-i386
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
..
abs.d bfd/ 2005-07-18 06:23:40 +00:00
abs.s bfd/ 2005-07-18 06:23:40 +00:00
combreloc.d bfd/ 2004-05-11 17:08:38 +00:00
combreloc.s * ld-i386/combreloc.s: New test. 2002-10-10 07:49:11 +00:00
emit-relocs.d bfd/ 2006-02-28 07:16:12 +00:00
emit-relocs.s bfd/ 2006-02-28 07:16:12 +00:00
i386.exp ld/ 2006-03-03 09:32:01 +00:00
pcrel8.d include/elf/ChangeLog: 2006-01-18 21:07:51 +00:00
pcrel8.s bfd/ 2005-07-18 06:23:40 +00:00
pcrel16.d include/elf/ChangeLog: 2006-01-18 21:07:51 +00:00
pcrel16.s bfd/ 2005-08-03 16:30:34 +00:00
reloc.d * ld-i386/i386.exp (reloc): Turn off combreloc. 2002-10-10 02:53:17 +00:00
reloc.s
tlsbin.dd PR ld/2513 2006-06-29 12:34:37 +00:00
tlsbin.rd bfd/ 2006-10-17 13:41:49 +00:00
tlsbin.s
tlsbin.sd bfd/ 2004-05-11 17:08:38 +00:00
tlsbin.td
tlsbindesc.dd bfd/ 2006-06-30 14:16:13 +00:00
tlsbindesc.rd bfd/ 2006-10-17 13:41:49 +00:00
tlsbindesc.s include/elf/ChangeLog: 2006-01-18 21:07:51 +00:00
tlsbindesc.sd include/elf/ChangeLog: 2006-01-18 21:07:51 +00:00
tlsbindesc.td include/elf/ChangeLog: 2006-01-18 21:07:51 +00:00
tlsbinpic.s bfd/ 2004-05-11 17:08:38 +00:00
tlsdesc.dd bfd/ 2006-06-30 14:16:13 +00:00
tlsdesc.rd bfd/ 2006-10-17 13:41:49 +00:00
tlsdesc.s include/elf/ChangeLog: 2006-01-18 21:07:51 +00:00
tlsdesc.sd bfd/ 2006-10-17 13:41:49 +00:00
tlsdesc.td include/elf/ChangeLog: 2006-01-18 21:07:51 +00:00
tlsg.s bfd/ 2002-10-01 09:10:46 +00:00
tlsg.sd bfd/ 2002-10-01 09:10:46 +00:00
tlsgdesc.dd bfd/ 2006-06-30 14:16:13 +00:00
tlsgdesc.rd bfd/ 2006-10-17 13:41:49 +00:00
tlsgdesc.s include/elf/ChangeLog: 2006-01-18 21:07:51 +00:00
tlsindntpoff.dd bfd/ 2002-10-01 10:43:37 +00:00
tlsindntpoff.s bfd/ 2002-10-01 10:43:37 +00:00
tlslib.s
tlsnopic1.s bfd/ 2004-05-11 17:08:38 +00:00
tlsnopic2.s
tlsnopic.dd * ld-cris/pv32.s: Give expobj a size. 2005-07-08 06:22:04 +00:00
tlsnopic.rd bfd/ 2006-10-17 13:41:49 +00:00
tlsnopic.sd * ld-cris/pv32.s: Give expobj a size. 2005-07-08 06:22:04 +00:00
tlspic1.s
tlspic2.s
tlspic.dd bfd/ 2004-05-11 17:08:38 +00:00
tlspic.rd bfd/ 2006-10-17 13:41:49 +00:00
tlspic.sd bfd/ 2004-05-11 17:08:38 +00:00
tlspic.td
vxworks1-lib.dd ld/testsuite/ 2006-03-02 08:54:43 +00:00
vxworks1-lib.nd bfd/ 2006-03-02 08:57:00 +00:00
vxworks1-lib.rd bfd/ 2006-03-02 09:44:23 +00:00
vxworks1-lib.s bfd/ 2006-03-02 09:44:23 +00:00
vxworks1-static.d ld/ 2006-03-03 09:32:01 +00:00
vxworks1.dd ld/testsuite/ 2006-03-02 08:54:43 +00:00
vxworks1.ld bfd/ 2006-03-02 09:44:23 +00:00
vxworks1.rd ld/testsuite/ 2006-03-02 08:54:43 +00:00
vxworks1.s ld/testsuite/ 2006-02-28 07:17:33 +00:00
vxworks2-static.sd ld/ 2006-03-03 09:32:01 +00:00
vxworks2.s ld/ 2006-03-03 09:32:01 +00:00
vxworks2.sd ld/ 2006-03-03 09:32:01 +00:00
zero.s bfd/ 2005-07-18 06:23:40 +00:00