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. |
||
---|---|---|
.. | ||
badgotr1.d | ||
comref1.s | ||
cris.exp | ||
def2.d | ||
def3.d | ||
dso-1.s | ||
dso-2.s | ||
dso-3.s | ||
dsofnf.s | ||
dsofnf2.s | ||
dsov32-1.s | ||
dsov32-2.s | ||
dsov32-3.s | ||
dsov32-4.s | ||
euwref1.s | ||
expdref1.s | ||
expdyn1.d | ||
expdyn1.s | ||
expdyn2.d | ||
expdyn3.d | ||
expdyn4.d | ||
expdyn5.d | ||
expdyn6.d | ||
expdyn7.d | ||
globsym1ref.s | ||
globsymw1.s | ||
globsymw2.s | ||
gotplt1.d | ||
gotplt2.d | ||
gotplt3.d | ||
gotrel1.s | ||
gotrel2.s | ||
hiddef1.d | ||
hiddef1.s | ||
hide1 | ||
hidrefgotplt1.s | ||
ldsym1.d | ||
libdso-1.d | ||
libdso-2.d | ||
libdso-3.d | ||
libdso-4.d | ||
libdso-10.d | ||
libdso-11.d | ||
libdso-12.d | ||
libdso-13.d | ||
libdso-14.d | ||
locref1.d | ||
locref1.s | ||
locref2.d | ||
locref2.s | ||
move-1.s | ||
nodyn4.d | ||
nodyn5.d | ||
noglob1.d | ||
noglob1.s | ||
noov.d | ||
noov.s | ||
pv32-1.d | ||
pv32.s | ||
stabs1.s | ||
start1.s | ||
undef1.d | ||
undef2.d | ||
undef3.d | ||
v10-v32.d | ||
v10-va.d | ||
v32-ba-1.d | ||
v32-ba-1.s | ||
v32-bin-1.d | ||
v32-bin-1.s | ||
v32-v10.d | ||
v32-va.d | ||
va-v10.d | ||
va-v32.d | ||
warn1.d | ||
warn2.d | ||
warn3.d | ||
warn4.d | ||
weakref1.d | ||
weakref2.d |