old-cross-binutils/ld/testsuite/ld-scripts
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
..
align.exp Add x86_64-mingw64 target 2006-09-20 11:35:11 +00:00
align.s * ldgram.y (exp): Add two operand ALIGN. 2004-02-20 15:31:10 +00:00
align.t * ldgram.y (exp): Add two operand ALIGN. 2004-02-20 15:31:10 +00:00
align2.t * ld-elf/warn1.d: Specify -Ttext. 2005-02-21 08:18:49 +00:00
align2a.d Add x86_64-mingw64 target 2006-09-20 11:35:11 +00:00
align2a.s * ldexp.c (assigning_to_dot): New global flag. 2005-02-17 20:57:01 +00:00
align2b.d * ld-elf/warn1.d: Specify -Ttext. 2005-02-21 08:18:49 +00:00
align2b.s * ldexp.c (assigning_to_dot): New global flag. 2005-02-17 20:57:01 +00:00
align2c.d * ldexp.c (assigning_to_dot): New global flag. 2005-02-17 20:57:01 +00:00
align2c.s * ldexp.c (assigning_to_dot): New global flag. 2005-02-17 20:57:01 +00:00
assert.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
assert.s gas/ 2004-04-15 01:49:22 +00:00
assert.t * ldgram.y (statement_anywhere): Add assert rule. 2004-02-18 16:37:21 +00:00
cross1.c 19990502 sourceware import 1999-05-03 07:29:11 +00:00
cross1.t * ld-scripts/cross1.t: Remove .opd section spec. 2004-08-17 01:18:50 +00:00
cross2.c 19990502 sourceware import 1999-05-03 07:29:11 +00:00
cross2.t * ld-checks/checks.exp: .lcomm is incompatible with ppc coff. 2001-08-27 10:49:55 +00:00
cross3.c 19990502 sourceware import 1999-05-03 07:29:11 +00:00
cross3.t 2005-10-04 H.J. Lu <hongjiu.lu@intel.com> 2005-10-04 19:54:08 +00:00
cross4.c 2005-10-04 H.J. Lu <hongjiu.lu@intel.com> 2005-10-04 19:54:08 +00:00
crossref.exp * ld-scripts/crossref.exp: Add -mcall-aixdesc to CFLAGS for 2005-10-18 02:25:42 +00:00
data.d * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
data.exp ld: 2005-06-01 04:04:19 +00:00
data.s gas/ 2004-04-15 01:49:22 +00:00
data.t * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
defined.exp Add x86_64-mingw64 target 2006-09-20 11:35:11 +00:00
defined.s 19990502 sourceware import 1999-05-03 07:29:11 +00:00
defined.t 19990502 sourceware import 1999-05-03 07:29:11 +00:00
defined2.d * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
defined2.t * ld-scripts/defined2.d, ld-scripts/defined2.t: New test. 2003-10-08 12:35:18 +00:00
defined3.d * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
defined3.t * ld-scripts/defined3.d, ld-scripts/defined3.t: New test. 2003-10-11 09:18:58 +00:00
dynamic-sections-1.s * ld-scripts/dynamic-sections*: New test. 2002-07-09 08:47:24 +00:00
dynamic-sections-2.s * ld-scripts/dynamic-sections*: New test. 2002-07-09 08:47:24 +00:00
dynamic-sections.d * ld-scripts/dynamic-sections*: New test. 2002-07-09 08:47:24 +00:00
dynamic-sections.exp * ld-scripts/dynamic-sections*: New test. 2002-07-09 08:47:24 +00:00
dynamic-sections.t * ld-scripts/dynamic-sections*: New test. 2002-07-09 08:47:24 +00:00
empty-address-1.d bfd/ 2006-10-17 13:41:49 +00:00
empty-address-1.s bfd/ 2006-09-27 04:18:16 +00:00
empty-address-1.t bfd/ 2006-09-27 04:18:16 +00:00
empty-address-2.s bfd/ 2006-09-27 04:18:16 +00:00
empty-address-2a.d bfd/ 2006-09-27 04:18:16 +00:00
empty-address-2a.t bfd/ 2006-09-27 04:18:16 +00:00
empty-address-2b.d bfd/ 2006-09-27 04:18:16 +00:00
empty-address-2b.t bfd/ 2006-09-27 04:18:16 +00:00
empty-address-3.s bfd/ 2006-09-27 04:18:16 +00:00
empty-address-3a.d bfd/ 2006-09-27 04:18:16 +00:00
empty-address-3a.t bfd/ 2006-09-27 04:18:16 +00:00
empty-address-3b.d bfd/ 2006-09-27 04:18:16 +00:00
empty-address-3b.t bfd/ 2006-09-27 04:18:16 +00:00
empty-address-3c.d bfd/ 2006-10-17 13:41:49 +00:00
empty-address-3c.t bfd/ 2006-09-27 04:18:16 +00:00
empty-address.exp bfd/ 2006-09-27 04:18:16 +00:00
empty-aligned.d * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
empty-aligned.exp bfd/ 2005-05-17 16:43:02 +00:00
empty-aligned.s * ld-elf/empty.s: Define "start". 2005-08-15 14:08:58 +00:00
empty-aligned.t * ld-elf/empty.s: Define "start". 2005-08-15 14:08:58 +00:00
empty-orphan.d * ld-scripts/empty-orphan.d: Update again. 2006-05-19 11:50:31 +00:00
empty-orphan.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
empty-orphan.s ld/ChangeLog: 2005-03-17 16:20:39 +00:00
empty-orphan.t bfd/ 2006-10-17 13:41:49 +00:00
map-address.d * ld-discard/discard.exp: xfail m6812. 2002-08-28 00:11:40 +00:00
map-address.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
map-address.t * ld-scripts/map-address.exp: New test. 2002-04-30 09:23:14 +00:00
memory.t Add ORIGIN and LENGTH linker script operators. 2004-11-19 09:31:55 +00:00
overlay-size-map.d ld/ 2006-08-16 08:31:45 +00:00
overlay-size.d ld/ 2004-10-14 12:54:47 +00:00
overlay-size.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
overlay-size.s * lib/ld-lib.exp (run_dump_test): Add -L$srcdir/$subdir. 2002-05-07 11:08:57 +00:00
overlay-size.t 2006-09-15 H.J. Lu <hongjiu.lu@intel.com> 2006-09-15 16:19:33 +00:00
phdrs.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
phdrs.s 19990502 sourceware import 1999-05-03 07:29:11 +00:00
phdrs.t * ld-scripts/phdrs.exp: Fix regexp, s390x is 64 bit platform. 2001-05-01 08:07:35 +00:00
phdrs2.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
phdrs2.s Fix phdrs2 test 2002-06-07 10:30:56 +00:00
phdrs2.t Fix phdrs2 test 2002-06-07 10:30:56 +00:00
provide-1.d * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
provide-1.s * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
provide-1.t * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
provide-2.d * ld-crx/reloc-num8.d: Adjust for changed orphan placement. 2004-10-15 00:27:12 +00:00
provide-2.s * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
provide-2.t * ld-crx/reloc-num8.d: Adjust for changed orphan placement. 2004-10-15 00:27:12 +00:00
provide-3.d * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
provide-3.s * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
provide-3.t * ldlang.h (struct lang_output_section_state): Change processed 2004-02-23 10:10:02 +00:00
provide.exp Add x86_64-mingw64 target 2006-09-20 11:35:11 +00:00
script.exp Add x86_64-mingw64 target 2006-09-20 11:35:11 +00:00
script.s 19990502 sourceware import 1999-05-03 07:29:11 +00:00
script.t 19990502 sourceware import 1999-05-03 07:29:11 +00:00
scriptm.t 19990502 sourceware import 1999-05-03 07:29:11 +00:00
size-1.d * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
size-1.s * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
size-1.t * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
size-2.d * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
size-2.s * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
size-2.t * ld-scripts/align.exp: Don't run on aix. 2004-04-08 00:51:37 +00:00
size.exp ld: 2005-06-01 04:04:19 +00:00
sizeof.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
sizeof.s 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sizeof.t 19990502 sourceware import 1999-05-03 07:29:11 +00:00
sort.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
sort.t ld/ 2006-08-08 15:07:16 +00:00
sort_b_a-1.d ld/ 2006-08-08 15:07:16 +00:00
sort_b_a-1.s ld/ 2006-08-08 15:07:16 +00:00
sort_b_a.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a.s ld/ 2004-10-04 16:45:51 +00:00
sort_b_a.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_a-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_a-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_a-3.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_a.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_n-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_n-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_n-3.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_n.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_n-1.d ld/ 2006-08-08 15:07:16 +00:00
sort_b_n-1.s ld/ 2006-08-08 15:07:16 +00:00
sort_b_n.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n.s ld/ 2004-10-04 16:45:51 +00:00
sort_b_n.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_a-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_a-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_a-3.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_a.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_n-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_n-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_n-3.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_n.t ld/ 2004-10-04 16:45:51 +00:00
sort_n_a-a.s ld/ 2004-10-04 16:45:51 +00:00
sort_n_a-b.s ld/ 2004-10-04 16:45:51 +00:00
sort_no-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_no-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_no.t ld/ 2004-10-04 16:45:51 +00:00
weak.exp Add x86_64-mingw64 target 2006-09-20 11:35:11 +00:00
weak.t 19990502 sourceware import 1999-05-03 07:29:11 +00:00
weak1.s gas/testsuite/ 2005-03-22 14:20:38 +00:00
weak2.s gas/testsuite/ 2005-03-22 14:20:38 +00:00