diff options
author | Alan Modra <amodra@gmail.com> | 2020-04-18 15:57:07 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-04-20 08:14:42 +0930 |
commit | 2efec98b28bbc89fc8e062709c7e28cc8a56ee40 (patch) | |
tree | 4c52288432a90138eab7e5d15ac38d6d7ee49cda /bfd/elf64-ppc.c | |
parent | 45e1f031e823abf0fb233b3da6da099417e65bd8 (diff) | |
download | gdb-2efec98b28bbc89fc8e062709c7e28cc8a56ee40.zip gdb-2efec98b28bbc89fc8e062709c7e28cc8a56ee40.tar.gz gdb-2efec98b28bbc89fc8e062709c7e28cc8a56ee40.tar.bz2 |
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.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 63de3ab..53e5d91 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -13772,6 +13772,8 @@ ppc64_elf_size_stubs (struct bfd_link_info *info) } maybe_strip_output (info, htab->brlt); + if (htab->relbrlt != NULL) + maybe_strip_output (info, htab->relbrlt); if (htab->glink_eh_frame != NULL) maybe_strip_output (info, htab->glink_eh_frame); |