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. |
||
---|---|---|
.. | ||
begin.c | ||
binutils.exp | ||
commonpage1.d | ||
dl1.c | ||
dl1.list | ||
dl1.out | ||
dl1main.c | ||
dl2.c | ||
dl2.list | ||
dl2a.out | ||
dl2b.out | ||
dl2main.c | ||
dl2xxx.c | ||
dl2xxx.list | ||
dl3.cc | ||
dl3.list | ||
dl3a.out | ||
dl3b.out | ||
dl3header.h | ||
dl3main.cc | ||
eh1.d | ||
eh1.s | ||
eh1a.s | ||
eh2.d | ||
eh2a.s | ||
eh3.d | ||
eh3.s | ||
eh3a.s | ||
eh4.d | ||
eh4.s | ||
eh4a.s | ||
elf.exp | ||
empty.d | ||
empty.s | ||
empty2.d | ||
empty2.s | ||
end.c | ||
endhidden.c | ||
endprotected.c | ||
exclude.exp | ||
exclude1.s | ||
exclude2.s | ||
fini.c | ||
fini.out | ||
foo.c | ||
foo.map | ||
frame.exp | ||
frame.s | ||
group.ld | ||
group1.d | ||
group1a.s | ||
group1b.s | ||
group2.d | ||
hash.d | ||
hidden.out | ||
init.c | ||
init.out | ||
loadaddr.s | ||
loadaddr1.d | ||
loadaddr1.t | ||
loadaddr2.d | ||
loadaddr2.t | ||
loadaddr3.t | ||
loadaddr3a.d | ||
loadaddr3b.d | ||
main.c | ||
maxpage1.d | ||
maxpage1.s | ||
maxpage2.d | ||
merge.d | ||
merge.ld | ||
merge.s | ||
merge2.d | ||
merge2.s | ||
noload-1.d | ||
noload-1.s | ||
noload-1.t | ||
normal.out | ||
orphan.d | ||
orphan.ld | ||
orphan.s | ||
orphan2.d | ||
orphan2.s | ||
overlay.d | ||
overlay.s | ||
overlay.t | ||
preinit.c | ||
preinit.out | ||
sec64k.exp | ||
shared.exp | ||
stab.d | ||
start.s | ||
symbol1ref.s | ||
symbol1w.s | ||
table.s | ||
tbss.s | ||
tbss1.s | ||
tbss2.s | ||
tdata1.s | ||
tdata2.s | ||
tls_common.exp | ||
tls_common.s | ||
unknown.d | ||
unknown2.d | ||
unknown2.s | ||
warn1.d |