binutils-gdb/ld/testsuite/ld-arm
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
..
arm-app-abs32.d 2006-05-24 Paul Brook <paul@codesourcery.com> 2006-05-24 17:10:02 +00:00
arm-app-abs32.r bfd/ 2004-11-17 17:50:28 +00:00
arm-app-abs32.s * ld-arm/arm-app-abs32.s, ld-arm/arm-app-abs32.r, 2004-01-23 16:51:39 +00:00
arm-app.d 2006-05-24 Paul Brook <paul@codesourcery.com> 2006-05-24 17:10:02 +00:00
arm-app.r bfd/ 2004-11-17 17:50:28 +00:00
arm-app.s
arm-be8.d 2006-05-15 Paul Brook <paul@codesourcery.com> 2006-05-15 19:57:35 +00:00
arm-be8.s 2006-05-15 Paul Brook <paul@codesourcery.com> 2006-05-15 19:57:35 +00:00
arm-call1.s 2005-12-12 Paul Brook <paul@codesourcery.com> 2005-12-12 17:03:40 +00:00
arm-call2.s 2005-12-12 Paul Brook <paul@codesourcery.com> 2005-12-12 17:03:40 +00:00
arm-call.d 2005-12-12 Paul Brook <paul@codesourcery.com> 2005-12-12 17:03:40 +00:00
arm-dyn.ld bfd/ 2005-03-29 16:54:22 +00:00
arm-elf.exp 2006-08-18 Paul Brook <paul@codesourcery.com> 2006-08-18 15:00:18 +00:00
arm-lib-plt32.d 2006-05-24 Paul Brook <paul@codesourcery.com> 2006-05-24 17:10:02 +00:00
arm-lib-plt32.r bfd/ 2004-11-17 17:50:28 +00:00
arm-lib-plt32.s
arm-lib.d 2006-05-24 Paul Brook <paul@codesourcery.com> 2006-05-24 17:10:02 +00:00
arm-lib.ld bfd/ 2005-03-29 16:54:22 +00:00
arm-lib.r bfd/ 2004-11-17 17:50:28 +00:00
arm-lib.s
arm-movwt.d 2006-05-11 Paul Brook <paul@codesourcery.com> 2006-05-11 15:17:34 +00:00
arm-movwt.s 2006-05-11 Paul Brook <paul@codesourcery.com> 2006-05-11 15:17:34 +00:00
arm-rel31.d 2005-10-08 Paul Brook <paul@codesourcery.com> 2005-10-08 17:07:19 +00:00
arm-rel31.s bfd/ 2004-09-17 12:18:19 +00:00
arm-static-app.d bfd/ 2004-11-17 17:50:28 +00:00
arm-static-app.r bfd/ 2004-11-17 17:50:28 +00:00
arm-static-app.s * ld-arm/arm-elf.exp: Add arm-static-app test. 2004-01-13 21:09:18 +00:00
arm-target1-abs.d 2005-10-08 Paul Brook <paul@codesourcery.com> 2005-10-08 17:07:19 +00:00
arm-target1-rel.d 2005-10-08 Paul Brook <paul@codesourcery.com> 2005-10-08 17:07:19 +00:00
arm-target1.s bfd/ 2004-09-17 12:18:19 +00:00
arm-target2-abs.d 2005-10-08 Paul Brook <paul@codesourcery.com> 2005-10-08 17:07:19 +00:00
arm-target2-got-rel.d 2005-10-08 Paul Brook <paul@codesourcery.com> 2005-10-08 17:07:19 +00:00
arm-target2-rel.d 2005-10-08 Paul Brook <paul@codesourcery.com> 2005-10-08 17:07:19 +00:00
arm-target2.s bfd/ 2004-09-17 12:18:19 +00:00
arm.ld 2006-05-11 Paul Brook <paul@codesourcery.com> 2006-05-11 15:17:34 +00:00
armthumb-lib.d 2006-08-18 Paul Brook <paul@codesourcery.com> 2006-08-18 15:00:18 +00:00
armthumb-lib.sym 2006-08-18 Paul Brook <paul@codesourcery.com> 2006-08-18 15:00:18 +00:00
group-relocs-alu-bad.d * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
group-relocs-alu-bad.s * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
group-relocs-ldc-bad.d * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
group-relocs-ldc-bad.s * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
group-relocs-ldr-bad.d * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
group-relocs-ldr-bad.s * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
group-relocs-ldrs-bad.d * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
group-relocs-ldrs-bad.s * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
group-relocs.d * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
group-relocs.s * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2} 2006-06-15 11:03:02 +00:00
mixed-app-v5.d 2006-05-24 Paul Brook <paul@codesourcery.com> 2006-05-24 17:10:02 +00:00
mixed-app.d 2006-05-24 Paul Brook <paul@codesourcery.com> 2006-05-24 17:10:02 +00:00
mixed-app.r 2005-12-12 Paul Brook <paul@codesourcery.com> 2005-12-12 17:03:40 +00:00
mixed-app.s bfd/ 2004-11-17 17:50:28 +00:00
mixed-app.sym bfd/ 2006-10-17 13:41:49 +00:00
mixed-lib.d 2006-05-24 Paul Brook <paul@codesourcery.com> 2006-05-24 17:10:02 +00:00
mixed-lib.r bfd/ 2004-11-17 17:50:28 +00:00
mixed-lib.s bfd/ 2004-11-17 17:50:28 +00:00
mixed-lib.sym Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
thumb-entry.d 2006-02-07 Paul Brook <paul@codesourcery.com> 2006-02-07 03:50:20 +00:00
thumb-entry.s 2006-02-07 Paul Brook <paul@codesourcery.com> 2006-02-07 03:50:20 +00:00
thumb-rel32.d 2006-05-02 Paul Brook <paul@codesourcery.com> 2006-05-02 13:09:18 +00:00
thumb-rel32.s 2006-05-02 Paul Brook <paul@codesourcery.com> 2006-05-02 13:09:18 +00:00
tls-app.d Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
tls-app.r Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
tls-app.s bfd/ 2005-03-29 16:54:22 +00:00
tls-lib.d * ld-arm/mixed-app.sym: Expact _stack to be in the ABS section. 2005-08-08 15:52:54 +00:00
tls-lib.r * ld-arm/mixed-app.sym: Expact _stack to be in the ABS section. 2005-08-08 15:52:54 +00:00
tls-lib.s bfd/ 2005-03-29 16:54:22 +00:00
use-thumb-lib.s 2006-06-19 Vladimir Prus <vladimir@codesourcery.com> 2006-06-20 13:55:08 +00:00
use-thumb-lib.sym * ld-arm/use-thumb-lib.sym: Robustify, by ignoring symbols we're 2006-10-02 17:10:56 +00:00
vxworks1-lib.dd bfd/ 2006-03-07 08:39:21 +00:00
vxworks1-lib.nd bfd/ 2006-03-07 08:39:21 +00:00
vxworks1-lib.rd bfd/ 2006-03-07 08:39:21 +00:00
vxworks1-lib.s bfd/ 2006-03-07 08:39:21 +00:00
vxworks1-static.d bfd/ 2006-03-07 08:39:21 +00:00
vxworks1.dd bfd/ 2006-03-07 08:39:21 +00:00
vxworks1.ld bfd/ 2006-03-07 08:39:21 +00:00
vxworks1.rd bfd/ 2006-03-07 08:39:21 +00:00
vxworks1.s bfd/ 2006-03-07 08:39:21 +00:00
vxworks2-static.sd bfd/ 2006-03-07 08:39:21 +00:00
vxworks2.s bfd/ 2006-03-07 08:39:21 +00:00
vxworks2.sd bfd/ 2006-03-07 08:39:21 +00:00