PowerPC: Don't generate unused section symbols
authorAlan Modra <amodra@gmail.com>
Wed, 20 Jan 2021 05:25:46 +0000 (15:55 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 20 Jan 2021 05:42:06 +0000 (16:12 +1030)
commit4bd7c90276a11ee2f43c6bbe62f2379f3a225234
tree00a1d3fff259d22fb60d56553637497c5199421a
parent8bd10d6b16de92570336e6026d466ef90e077e6e
PowerPC: Don't generate unused section symbols

PowerPC version of git commit d1bcae833b.

bfd/
* elf32-ppc.c: Delete outdated comment.
(TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
* elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
gas/
* testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
* testsuite/gas/ppc/test1elf32.d: Likewise.
* testsuite/gas/ppc/test1elf64.d: Likewise.
ld/
* testsuite/ld-powerpc/relbrlt.s: Make symbols global.
* testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
* testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
* testsuite/ld-powerpc/tlsget.wf: Likewise.
* testsuite/ld-powerpc/tlsget2.d: Likewise.
* testsuite/ld-powerpc/tlsget2.wf: Likewise.
* testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
* testsuite/ld-powerpc/tlsexe32.r: Likewise.
* testsuite/ld-powerpc/tlsexe32no.r: Likewise.
* testsuite/ld-powerpc/tlsexeno.r: Likewise.
* testsuite/ld-powerpc/tlsexenors.r: Likewise.
* testsuite/ld-powerpc/tlsexers.r: Likewise.
* testsuite/ld-powerpc/tlsexetoc.r: Likewise.
* testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
* testsuite/ld-powerpc/tlsso.r: Likewise.
* testsuite/ld-powerpc/tlsso32.r: Likewise.
* testsuite/ld-powerpc/tlstocso.r: Likewise.
25 files changed:
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c
gas/ChangeLog
gas/testsuite/gas/ppc/power4.d
gas/testsuite/gas/ppc/test1elf32.d
gas/testsuite/gas/ppc/test1elf64.d
ld/ChangeLog
ld/testsuite/ld-powerpc/relbrlt.d
ld/testsuite/ld-powerpc/relbrlt.s
ld/testsuite/ld-powerpc/tlsexe.r
ld/testsuite/ld-powerpc/tlsexe32.r
ld/testsuite/ld-powerpc/tlsexe32no.r
ld/testsuite/ld-powerpc/tlsexeno.r
ld/testsuite/ld-powerpc/tlsexenors.r
ld/testsuite/ld-powerpc/tlsexers.r
ld/testsuite/ld-powerpc/tlsexetoc.r
ld/testsuite/ld-powerpc/tlsexetocrs.r
ld/testsuite/ld-powerpc/tlsget.d
ld/testsuite/ld-powerpc/tlsget.wf
ld/testsuite/ld-powerpc/tlsget2.d
ld/testsuite/ld-powerpc/tlsget2.wf
ld/testsuite/ld-powerpc/tlsso.r
ld/testsuite/ld-powerpc/tlsso32.r
ld/testsuite/ld-powerpc/tlstocso.r