PowerPC64: remove empty .rela.dyn (.rela.branch_lt)
authorAlan Modra <amodra@gmail.com>
Sat, 18 Apr 2020 06:27:07 +0000 (15:57 +0930)
committerAlan Modra <amodra@gmail.com>
Sun, 19 Apr 2020 22:44:42 +0000 (08:14 +0930)
commit2efec98b28bbc89fc8e062709c7e28cc8a56ee40
tree4c52288432a90138eab7e5d15ac38d6d7ee49cda
parent45e1f031e823abf0fb233b3da6da099417e65bd8
PowerPC64: remove empty .rela.dyn (.rela.branch_lt)

Stripping .rela.branch_lt is easy enough but messes with the
testsuite due to stub symbols (that use section id) changing.  Tests
that run on more than one target variant can be tricky to fix, this
renaming happened to work.

bfd/
* elf64-ppc.c (ppc64_elf_size_stubs): Strip relbrlt too.
ld/
* testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
* testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
* testsuite/ld-powerpc/tlsopt6.d: Likewise.
bfd/ChangeLog
bfd/elf64-ppc.c
ld/ChangeLog
ld/testsuite/ld-powerpc/tlsopt5.d
ld/testsuite/ld-powerpc/tlsopt5.s
ld/testsuite/ld-powerpc/tlsopt6.d