binutils-gdb/ld/testsuite/ld-mips-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
..
branch-misc-1.d ld/ 2006-10-16 21:34:25 +00:00
eh-frame1-n32.d bfd/ 2006-10-17 13:41:49 +00:00
eh-frame1-n64.d bfd/ 2006-10-17 13:41:49 +00:00
eh-frame1.ld
eh-frame1.s
eh-frame2-n32.d bfd/ 2006-10-17 13:41:49 +00:00
eh-frame2-n64.d bfd/ 2006-10-17 13:41:49 +00:00
eh-frame3.d
eh-frame4.d
elf-rel-got-n32.d
elf-rel-got-n64-linux.d
elf-rel-got-n64.d
elf-rel-xgot-n32.d
elf-rel-xgot-n64-linux.d
elf-rel-xgot-n64.d
emit-relocs-1.d bfd/ 2006-03-14 07:47:49 +00:00
emit-relocs-1.ld bfd/ 2006-03-14 07:47:49 +00:00
emit-relocs-1a.s bfd/ 2006-03-14 07:47:49 +00:00
emit-relocs-1b.s bfd/ 2006-03-14 07:47:49 +00:00
hash1.s ld/ 2006-07-29 08:48:15 +00:00
hash1a.d ld/ 2006-07-29 08:48:15 +00:00
hash1b.d ld/ 2006-07-29 08:48:15 +00:00
hash1c.d ld/ 2006-07-29 08:48:15 +00:00
jalbal.d ld/ 2006-10-16 21:34:25 +00:00
jalbal.s
jaloverflow-2.d ld/ 2006-10-16 21:34:25 +00:00
jaloverflow-2.s
jaloverflow.d
jaloverflow.s
jr.s
mips16-1.d
mips16-1a.s
mips16-1b.s
mips16-call-global-1.s [ bfd/ChangeLog ] 2006-07-20 16:46:30 +00:00
mips16-call-global-2.s * ld-mips-elf/mips16-call-global-2.s, 2006-07-25 16:45:55 +00:00
mips16-call-global-3.s * ld-mips-elf/mips16-call-global-2.s, 2006-07-25 16:45:55 +00:00
mips16-call-global.d * ld-mips-elf/mips16-call-global-2.s, 2006-07-25 16:45:55 +00:00
mips16-hilo-n32.d
mips16-hilo.d
mips16-hilo.ld
mips16-hilo.s
mips-dyn.ld
mips-elf-flags.exp
mips-elf.exp bfd/ 2006-10-17 13:41:49 +00:00
mips-lib.ld
multi-got-1-1.s
multi-got-1-2.s
multi-got-1.d * ld-mips-elf/multi-got-1.d, ld-mips-elf/tls-multi-got-1.got, 2006-07-05 16:01:38 +00:00
multi-got-no-shared-1.s
multi-got-no-shared-2.s
multi-got-no-shared.d [ bfd/ChangeLog ] 2006-06-12 11:35:45 +00:00
region1.d
region1.t
region1a.s
region1b.s
rel32-n32.d bfd/ 2006-10-17 13:41:49 +00:00
rel32-o32.d bfd/ 2006-10-17 13:41:49 +00:00
rel32.s
rel64.d bfd/ 2006-10-17 13:41:49 +00:00
rel64.s
relax-jalr-n32-shared.d
relax-jalr-n32.d
relax-jalr-n64-shared.d
relax-jalr-n64.d
relax-jalr.s
reloc-1-n32.d
reloc-1-n64.d
reloc-1-rel.d
reloc-1a.s
reloc-1b.s
reloc-2.d
reloc-2.ld
reloc-2a.s
reloc-2b.s
reloc-3-n32.d ld/ 2006-10-16 21:34:25 +00:00
reloc-3.d ld/ 2006-10-16 21:34:25 +00:00
reloc-merge-lo16.d
reloc-merge-lo16.ld
reloc-merge-lo16.s
stub-dynsym-1-2fe80.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1-7fff.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1-8000.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1-10000.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1-fff0.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1.ld bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1.s bfd/ 2006-06-11 08:33:27 +00:00
textrel-1.d ld/ 2006-10-16 21:34:25 +00:00
textrel-1.s
tls-hidden2-got.d
tls-hidden2.d
tls-hidden2a.s
tls-hidden2b.s
tls-hidden3.d * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden3.got * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden3.ld * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden3.r * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden3a.s * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden3b.s * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden4.got * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden4.r * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden4a.s * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden4b.s * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-multi-got-1-1.s
tls-multi-got-1-2.s
tls-multi-got-1.d
tls-multi-got-1.got bfd/ 2006-10-17 13:41:49 +00:00
tls-multi-got-1.r bfd/ 2006-10-17 13:41:49 +00:00
tlsbin-o32.d
tlsbin-o32.got
tlsbin-o32.s
tlsdyn-o32-1.d bfd/ 2006-10-17 13:41:49 +00:00
tlsdyn-o32-1.got bfd/ 2006-10-17 13:41:49 +00:00
tlsdyn-o32-2.d bfd/ 2006-10-17 13:41:49 +00:00
tlsdyn-o32-2.got bfd/ 2006-10-17 13:41:49 +00:00
tlsdyn-o32-2.s
tlsdyn-o32-3.d bfd/ 2006-10-17 13:41:49 +00:00
tlsdyn-o32-3.got bfd/ 2006-10-17 13:41:49 +00:00
tlsdyn-o32.d bfd/ 2006-10-17 13:41:49 +00:00
tlsdyn-o32.got bfd/ 2006-10-17 13:41:49 +00:00
tlsdyn-o32.s
tlslib-hidden.ver
tlslib-o32-hidden.got bfd/ 2006-10-17 13:41:49 +00:00
tlslib-o32-ver.got bfd/ 2006-10-17 13:41:49 +00:00
tlslib-o32.d
tlslib-o32.got bfd/ 2006-10-17 13:41:49 +00:00
tlslib-o32.s
tlslib.ver
vxworks1-lib.dd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1-lib.nd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1-lib.rd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1-lib.s Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1-static.d Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1.dd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1.ld Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1.rd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1.s Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks2-static.sd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks2.s Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks2.sd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00