2ec55de302
I was having a little closer look at what is going on here and noticed that HJ unconditionally emits a NULL STT_FILE symbol before emitting forced local symbols. That means we really don't need a second pass over forced local symbols. The only reason for two passes is when some forced local symbol can be emitted before the NULL STT_FILE. So I set about removing the second pass, updating the testsuite all over again. It's also unnecessary to emit the NULL STT_FILE when no previous file symbol has been emitted. bfd/ PR ld/17975 * elflink.c (struct elf_outext_info): Remove need_second_pass and second_pass. (elf_link_output_extsym): Delete code handling second forced local pass. Move code emitting NULL STT_FILE symbol later, so that it can be omitted if forced local is stripped. Don't emit the NULL STT_FILE if no file symbols have been output. (bfd_elf_final_link): Remove second forced local pass. * elf32-ppc.c (add_stub_sym): Set linker_def on linker syms. (ppc_elf_size_dynamic_sections): Likewise. * elf64-ppc.c (ppc_build_one_stub): Likewise. (build_global_entry_stubs): Likewise. (ppc64_elf_build_stubs): Likewise. ld/testsuite/ PR ld/17975 * ld-aarch64/gc-tls-relocs.d, * ld-alpha/tlspic.rd, * ld-cris/libdso-2.d, * ld-i386/tlsdesc-nacl.rd, * ld-i386/tlsdesc.rd, * ld-i386/tlsnopic-nacl.rd, * ld-i386/tlsnopic.rd, * ld-i386/tlspic-nacl.rd, * ld-i386/tlspic.rd, * ld-ia64/tlspic.rd, * ld-powerpc/tlsexe.r, * ld-powerpc/tlsexetoc.r, * ld-powerpc/tlsso.r, * ld-powerpc/tlstocso.r, * ld-s390/tlspic.rd, * ld-s390/tlspic_64.rd, * ld-sparc/tlssunnopic32.rd, * ld-sparc/tlssunnopic64.rd, * ld-sparc/tlssunpic32.rd, * ld-sparc/tlssunpic64.rd, * ld-tic6x/shlib-1.rd, * ld-tic6x/shlib-1b.rd, * ld-tic6x/shlib-1r.rd, * ld-tic6x/shlib-1rb.rd, * ld-tic6x/shlib-noindex.rd, * ld-x86-64/tlsdesc-nacl.rd, * ld-x86-64/tlsdesc.rd, * ld-x86-64/tlspic-nacl.rd, * ld-x86-64/tlspic.rd: Update. |
||
---|---|---|
.. | ||
attr-arch-c62x-c62x.d | ||
attr-arch-c62x-c64x+.d | ||
attr-arch-c62x-c64x.d | ||
attr-arch-c62x-c67x+.d | ||
attr-arch-c62x-c67x.d | ||
attr-arch-c62x-c674x.d | ||
attr-arch-c62x.s | ||
attr-arch-c64x+-c62x.d | ||
attr-arch-c64x+-c64x+.d | ||
attr-arch-c64x+-c64x.d | ||
attr-arch-c64x+-c67x+.d | ||
attr-arch-c64x+-c67x.d | ||
attr-arch-c64x+-c674x.d | ||
attr-arch-c64x+.s | ||
attr-arch-c64x-c62x.d | ||
attr-arch-c64x-c64x+.d | ||
attr-arch-c64x-c64x.d | ||
attr-arch-c64x-c67x+.d | ||
attr-arch-c64x-c67x.d | ||
attr-arch-c64x-c674x.d | ||
attr-arch-c64x.s | ||
attr-arch-c67x+-c62x.d | ||
attr-arch-c67x+-c64x+.d | ||
attr-arch-c67x+-c64x.d | ||
attr-arch-c67x+-c67x+.d | ||
attr-arch-c67x+-c67x.d | ||
attr-arch-c67x+-c674x.d | ||
attr-arch-c67x+.s | ||
attr-arch-c67x-c62x.d | ||
attr-arch-c67x-c64x+.d | ||
attr-arch-c67x-c64x.d | ||
attr-arch-c67x-c67x+.d | ||
attr-arch-c67x-c67x.d | ||
attr-arch-c67x-c674x.d | ||
attr-arch-c67x.s | ||
attr-arch-c674x-c62x.d | ||
attr-arch-c674x-c64x+.d | ||
attr-arch-c674x-c64x.d | ||
attr-arch-c674x-c67x+.d | ||
attr-arch-c674x-c67x.d | ||
attr-arch-c674x-c674x.d | ||
attr-arch-c674x.s | ||
attr-array-4-4.d | ||
attr-array-4-8.d | ||
attr-array-4-16.d | ||
attr-array-4-48.d | ||
attr-array-4-416.d | ||
attr-array-4-816.d | ||
attr-array-4.s | ||
attr-array-8-4.d | ||
attr-array-8-8.d | ||
attr-array-8-16.d | ||
attr-array-8-48.d | ||
attr-array-8-416.d | ||
attr-array-8-816.d | ||
attr-array-8.s | ||
attr-array-16-4.d | ||
attr-array-16-8.d | ||
attr-array-16-16.d | ||
attr-array-16-48.d | ||
attr-array-16-416.d | ||
attr-array-16-816.d | ||
attr-array-16.s | ||
attr-array-48-4.d | ||
attr-array-48-8.d | ||
attr-array-48-16.d | ||
attr-array-48-48.d | ||
attr-array-48-416.d | ||
attr-array-48-816.d | ||
attr-array-48.s | ||
attr-array-416-4.d | ||
attr-array-416-8.d | ||
attr-array-416-16.d | ||
attr-array-416-48.d | ||
attr-array-416-416.d | ||
attr-array-416-816.d | ||
attr-array-416.s | ||
attr-array-816-4.d | ||
attr-array-816-8.d | ||
attr-array-816-16.d | ||
attr-array-816-48.d | ||
attr-array-816-416.d | ||
attr-array-816-816.d | ||
attr-array-816.s | ||
attr-compatibility-gnu-gnu.d | ||
attr-compatibility-gnu-other.d | ||
attr-compatibility-gnu.s | ||
attr-compatibility-other-gnu.d | ||
attr-compatibility-other-other.d | ||
attr-compatibility-other.s | ||
attr-conformance-10-10.d | ||
attr-conformance-10-11.d | ||
attr-conformance-10-none.d | ||
attr-conformance-10.s | ||
attr-conformance-11-10.d | ||
attr-conformance-11-11.d | ||
attr-conformance-11-none.d | ||
attr-conformance-11.s | ||
attr-conformance-none-10.d | ||
attr-conformance-none-11.d | ||
attr-conformance-none-none.d | ||
attr-conformance-none.s | ||
attr-dsbt-00.d | ||
attr-dsbt-0.s | ||
attr-dsbt-01.d | ||
attr-dsbt-1.s | ||
attr-dsbt-10.d | ||
attr-dsbt-11.d | ||
attr-pic-00.d | ||
attr-pic-0.s | ||
attr-pic-01.d | ||
attr-pic-1.s | ||
attr-pic-10.d | ||
attr-pic-11.d | ||
attr-pid-00.d | ||
attr-pid-0.s | ||
attr-pid-01.d | ||
attr-pid-1.s | ||
attr-pid-02.d | ||
attr-pid-2.s | ||
attr-pid-10.d | ||
attr-pid-11.d | ||
attr-pid-12.d | ||
attr-pid-20.d | ||
attr-pid-21.d | ||
attr-pid-22.d | ||
attr-stack-8-8.d | ||
attr-stack-8-16.d | ||
attr-stack-8-816.d | ||
attr-stack-8.s | ||
attr-stack-16-8.d | ||
attr-stack-16-16.d | ||
attr-stack-16-816.d | ||
attr-stack-16.s | ||
attr-stack-816-8.d | ||
attr-stack-816-16.d | ||
attr-stack-816-816.d | ||
attr-stack-816.s | ||
attr-unknown-1.d | ||
attr-unknown-2.d | ||
attr-unknown-3.d | ||
attr-unknown-4.d | ||
attr-unknown-5.d | ||
attr-unknown-6.d | ||
attr-unknown-7.d | ||
attr-unknown-54-1.s | ||
attr-unknown-55-a.s | ||
attr-unknown-71-a.s | ||
attr-unknown-71-b.s | ||
attr-unknown-1000-1.s | ||
attr-unknown-1000-2.s | ||
attr-unknown-1024-1.s | ||
attr-wchar-00.d | ||
attr-wchar-0.s | ||
attr-wchar-01.d | ||
attr-wchar-1.s | ||
attr-wchar-02.d | ||
attr-wchar-2.s | ||
attr-wchar-10.d | ||
attr-wchar-11.d | ||
attr-wchar-12.d | ||
attr-wchar-20.d | ||
attr-wchar-21.d | ||
attr-wchar-22.d | ||
common.d | ||
common.ld | ||
common.s | ||
data-reloc-global-rel.d | ||
data-reloc-global-rel.s | ||
data-reloc-global.d | ||
data-reloc-global.s | ||
data-reloc-local-1.s | ||
data-reloc-local-2.s | ||
data-reloc-local-r-rel.d | ||
data-reloc-local-r.d | ||
data-reloc-local-rel.d | ||
data-reloc-local.d | ||
discard-unwind.ld | ||
dsbt-be.ld | ||
dsbt-index-error.d | ||
dsbt-index.d | ||
dsbt-index.s | ||
dsbt-inrange.ld | ||
dsbt-overflow.ld | ||
dsbt.ld | ||
ehtype-reloc-1-rel.d | ||
ehtype-reloc-1.d | ||
ehtype-reloc-1.s | ||
generic.ld | ||
got-reloc-global-addend-1.d | ||
got-reloc-global-addend-1.s | ||
got-reloc-global-addend-2.d | ||
got-reloc-global-addend-2.s | ||
got-reloc-global.s | ||
got-reloc-inrange.d | ||
got-reloc-local-1.s | ||
got-reloc-local-2.s | ||
got-reloc-local-r.d | ||
got-reloc-overflow.d | ||
mvk-reloc-global-rel.d | ||
mvk-reloc-global-rel.s | ||
mvk-reloc-global.d | ||
mvk-reloc-global.s | ||
mvk-reloc-local-1-rel.s | ||
mvk-reloc-local-1.s | ||
mvk-reloc-local-2-rel.s | ||
mvk-reloc-local-2.s | ||
mvk-reloc-local-r-rel.d | ||
mvk-reloc-local-r.d | ||
mvk-reloc-local-rel.d | ||
mvk-reloc-local.d | ||
pcr-reloc.d | ||
pcr-reloc.s | ||
pcrel-reloc-global-rel.d | ||
pcrel-reloc-global.d | ||
pcrel-reloc-global.s | ||
pcrel-reloc-local-1.s | ||
pcrel-reloc-local-2.s | ||
pcrel-reloc-local-r-rel-rela.d | ||
pcrel-reloc-local-r-rel.d | ||
pcrel-reloc-local-r.d | ||
pcrel-reloc-local-rel.d | ||
pcrel-reloc-local.d | ||
reloc-overflow-abs-s16-1.d | ||
reloc-overflow-abs-s16-2.d | ||
reloc-overflow-abs-s16.s | ||
reloc-overflow-abs8-1.d | ||
reloc-overflow-abs8-2.d | ||
reloc-overflow-abs8.s | ||
reloc-overflow-abs16-1.d | ||
reloc-overflow-abs16-2.d | ||
reloc-overflow-abs16.s | ||
reloc-overflow-pcr-s7-1.d | ||
reloc-overflow-pcr-s7-2.d | ||
reloc-overflow-pcr-s7.s | ||
reloc-overflow-pcr-s10-1.d | ||
reloc-overflow-pcr-s10-2.d | ||
reloc-overflow-pcr-s10.s | ||
reloc-overflow-pcr-s12-1.d | ||
reloc-overflow-pcr-s12-2.d | ||
reloc-overflow-pcr-s12.s | ||
reloc-overflow-pcr-s21-1.d | ||
reloc-overflow-pcr-s21-2.d | ||
reloc-overflow-pcr-s21.s | ||
reloc-overflow-sbr-s16-1.d | ||
reloc-overflow-sbr-s16-2.d | ||
reloc-overflow-sbr-s16.s | ||
reloc-overflow-sbr-u15-b-1.d | ||
reloc-overflow-sbr-u15-b-2.d | ||
reloc-overflow-sbr-u15-b.s | ||
reloc-overflow-sbr-u15-h-1.d | ||
reloc-overflow-sbr-u15-h-2.d | ||
reloc-overflow-sbr-u15-h.s | ||
reloc-overflow-sbr-u15-w-1.d | ||
reloc-overflow-sbr-u15-w-2.d | ||
reloc-overflow-sbr-u15-w.s | ||
sbr-reloc-global-rel.d | ||
sbr-reloc-global-rel.s | ||
sbr-reloc-global.d | ||
sbr-reloc-global.s | ||
sbr-reloc-local-1-rel.s | ||
sbr-reloc-local-1.s | ||
sbr-reloc-local-2-rel.s | ||
sbr-reloc-local-2.s | ||
sbr-reloc-local-r-rel.d | ||
sbr-reloc-local-r.d | ||
sbr-reloc-local-rel.d | ||
sbr-reloc-local.d | ||
sbr.ld | ||
shared-nopic.d | ||
shared-nopid.d | ||
shlib-1.dd | ||
shlib-1.rd | ||
shlib-1.s | ||
shlib-1.sd | ||
shlib-1b.dd | ||
shlib-1b.rd | ||
shlib-1b.sd | ||
shlib-1r.dd | ||
shlib-1r.rd | ||
shlib-1r.sd | ||
shlib-1rb.dd | ||
shlib-1rb.rd | ||
shlib-1rb.sd | ||
shlib-2.s | ||
shlib-app-1.dd | ||
shlib-app-1.od | ||
shlib-app-1.rd | ||
shlib-app-1.s | ||
shlib-app-1.sd | ||
shlib-app-1b.dd | ||
shlib-app-1b.od | ||
shlib-app-1b.rd | ||
shlib-app-1b.sd | ||
shlib-app-1r.dd | ||
shlib-app-1r.od | ||
shlib-app-1r.rd | ||
shlib-app-1r.s | ||
shlib-app-1r.sd | ||
shlib-app-1rb.dd | ||
shlib-app-1rb.od | ||
shlib-app-1rb.rd | ||
shlib-app-1rb.sd | ||
shlib-noindex.dd | ||
shlib-noindex.rd | ||
shlib-noindex.sd | ||
static-app-1.dd | ||
static-app-1.od | ||
static-app-1.rd | ||
static-app-1.sd | ||
static-app-1b.dd | ||
static-app-1b.od | ||
static-app-1b.rd | ||
static-app-1b.sd | ||
static-app-1r.dd | ||
static-app-1r.od | ||
static-app-1r.rd | ||
static-app-1r.sd | ||
static-app-1rb.dd | ||
static-app-1rb.od | ||
static-app-1rb.rd | ||
static-app-1rb.sd | ||
tic6x.exp | ||
unwind-1.d | ||
unwind-1.s | ||
unwind-2.d | ||
unwind-2.s | ||
unwind-3.d | ||
unwind-3.s | ||
unwind-4.d | ||
unwind-4.s | ||
unwind-5.d | ||
unwind-5.s | ||
unwind-6.d | ||
unwind.ld | ||
weak-be.d | ||
weak-data.d | ||
weak.d | ||
weak.s |