74541ad4c0
* 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. |
||
---|---|---|
.. | ||
arm-app-abs32.d | ||
arm-app-abs32.r | ||
arm-app-abs32.s | ||
arm-app.d | ||
arm-app.r | ||
arm-app.s | ||
arm-be8.d | ||
arm-be8.s | ||
arm-call1.s | ||
arm-call2.s | ||
arm-call.d | ||
arm-dyn.ld | ||
arm-elf.exp | ||
arm-lib-plt32.d | ||
arm-lib-plt32.r | ||
arm-lib-plt32.s | ||
arm-lib.d | ||
arm-lib.ld | ||
arm-lib.r | ||
arm-lib.s | ||
arm-movwt.d | ||
arm-movwt.s | ||
arm-rel31.d | ||
arm-rel31.s | ||
arm-static-app.d | ||
arm-static-app.r | ||
arm-static-app.s | ||
arm-target1-abs.d | ||
arm-target1-rel.d | ||
arm-target1.s | ||
arm-target2-abs.d | ||
arm-target2-got-rel.d | ||
arm-target2-rel.d | ||
arm-target2.s | ||
arm.ld | ||
armthumb-lib.d | ||
armthumb-lib.sym | ||
group-relocs-alu-bad.d | ||
group-relocs-alu-bad.s | ||
group-relocs-ldc-bad.d | ||
group-relocs-ldc-bad.s | ||
group-relocs-ldr-bad.d | ||
group-relocs-ldr-bad.s | ||
group-relocs-ldrs-bad.d | ||
group-relocs-ldrs-bad.s | ||
group-relocs.d | ||
group-relocs.s | ||
mixed-app-v5.d | ||
mixed-app.d | ||
mixed-app.r | ||
mixed-app.s | ||
mixed-app.sym | ||
mixed-lib.d | ||
mixed-lib.r | ||
mixed-lib.s | ||
mixed-lib.sym | ||
thumb-entry.d | ||
thumb-entry.s | ||
thumb-rel32.d | ||
thumb-rel32.s | ||
tls-app.d | ||
tls-app.r | ||
tls-app.s | ||
tls-lib.d | ||
tls-lib.r | ||
tls-lib.s | ||
use-thumb-lib.s | ||
use-thumb-lib.sym | ||
vxworks1-lib.dd | ||
vxworks1-lib.nd | ||
vxworks1-lib.rd | ||
vxworks1-lib.s | ||
vxworks1-static.d | ||
vxworks1.dd | ||
vxworks1.ld | ||
vxworks1.rd | ||
vxworks1.s | ||
vxworks2-static.sd | ||
vxworks2.s | ||
vxworks2.sd |