old-cross-binutils/ld/testsuite/ld-sh
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
..
arch * ld-sh/arch/arch.exp (test_arch): Set the endian flag to suit the multilib 2006-07-21 09:56:40 +00:00
sh64 Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
ld-r-1.d ld-sh/ld-r-1.d: Disable for sh64*-*-linux*. 2002-10-14 18:45:03 +00:00
ldr1.s * ld-sh/rd-sh.exp: New framework file. 2001-10-14 15:18:11 +00:00
ldr2.s * ld-sh/rd-sh.exp: New framework file. 2001-10-14 15:18:11 +00:00
rd-sh.exp bfd/ 2006-08-04 13:13:56 +00:00
refdbg-0-dso.d * elf32-sh.c (sh_elf_relocate_section): Don't complain about 2002-11-28 08:37:15 +00:00
refdbg-1.d * elf32-sh.c (sh_elf_relocate_section): Don't complain about 2002-11-28 08:37:15 +00:00
refdbg.s * ld-discard/extern.s, ld-discard/start.s, ld-discard/static.s, 2003-04-13 14:42:22 +00:00
refdbglib.s * elf32-sh.c (sh_elf_relocate_section): Don't complain about 2002-11-28 08:37:15 +00:00
reloc1.d bfd/ 2006-08-04 13:13:56 +00:00
reloc1.s bfd/ 2006-08-04 13:13:56 +00:00
sh-vxworks.exp bfd/ 2006-08-04 13:13:56 +00:00
sh.exp bfd/ 2006-08-04 13:13:56 +00:00
sh1.s 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sh2.c 19990502 sourceware import 1999-05-03 07:29:11 +00:00
shared-1.d bfd/ 2006-10-17 13:41:49 +00:00
shared-2.d * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB. 2004-07-02 11:25:54 +00:00
start.s 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sub2l-1.d [ld] 2003-10-13 05:09:21 +00:00
sub2l.s * ld-sh/rd-sh.exp: New framework file. 2001-10-14 15:18:11 +00:00
textrel1.s * elf32-sh.c (sh_elf_check_relocs): Don't set DF_TEXTREL here. 2003-08-02 13:46:44 +00:00
textrel2.s * elf32-sh.c (sh_elf_check_relocs): Don't set DF_TEXTREL here. 2003-08-02 13:46:44 +00:00
tlsbin-0-dso.d * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output 2002-10-11 14:44:55 +00:00
tlsbin-1.d bfd/ 2004-04-23 02:47:39 +00:00
tlsbin-2.d Updo the last change to binutils and ld/testsuite. 2006-02-02 22:53:46 +00:00
tlsbin-3.d Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
tlsbin-4.d Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
tlsbin.s * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output 2002-10-11 14:44:55 +00:00
tlsbinpic.s * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output 2002-10-11 14:44:55 +00:00
tlslib.s * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output 2002-10-11 14:44:55 +00:00
tlspic-1.d bfd/ 2004-04-23 02:47:39 +00:00
tlspic-2.d bfd/ 2006-10-17 13:41:49 +00:00
tlspic-3.d * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output 2002-10-11 14:44:55 +00:00
tlspic-4.d * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output 2002-10-11 14:44:55 +00:00
tlspic1.s * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output 2002-10-11 14:44:55 +00:00
tlspic2.s * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output 2002-10-11 14:44:55 +00:00
tlstpoff-1.d * elf32-sh.c (tpoff): New. 2003-04-24 05:19:09 +00:00
tlstpoff-2.d * elf32-sh.c (tpoff): New. 2003-04-24 05:19:09 +00:00
tlstpoff1.s * ld-sh/tlstpoff-1.d: New. 2003-02-10 22:19:26 +00:00
tlstpoff2.s * ld-sh/tlstpoff-1.d: New. 2003-02-10 22:19:26 +00:00
vxworks1-le.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks1-lib-le.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks1-lib.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks1-lib.nd bfd/ 2006-08-04 13:13:56 +00:00
vxworks1-lib.rd bfd/ 2006-08-04 13:13:56 +00:00
vxworks1-lib.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks1-static.d bfd/ 2006-08-04 13:13:56 +00:00
vxworks1.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks1.ld bfd/ 2006-08-04 13:13:56 +00:00
vxworks1.rd bfd/ 2006-08-04 13:13:56 +00:00
vxworks1.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks2-static.sd bfd/ 2006-08-04 13:13:56 +00:00
vxworks2.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks2.sd bfd/ 2006-08-04 13:13:56 +00:00
vxworks3-le.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks3-lib-le.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks3-lib.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks3-lib.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks3.dd bfd/ 2006-08-04 13:13:56 +00:00
vxworks3.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks4.d bfd/ 2006-08-04 13:13:56 +00:00
vxworks4a.s bfd/ 2006-08-04 13:13:56 +00:00
vxworks4b.s bfd/ 2006-08-04 13:13:56 +00:00
weak1.d [ld] 2003-10-13 05:09:21 +00:00
weak1.s * ld-sh/rd-sh.exp: New framework file. 2001-10-14 15:18:11 +00:00