aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-08-03 16:45:25 +0930
committerAlan Modra <amodra@gmail.com>2018-08-05 10:33:07 +0930
commit3f6ff4799bc50e6030bb707b2b2b525fcfdd2216 (patch)
tree6eeb00a174a088a64b750e882fc7ddf370a8e34b /bfd
parent1a6204c9a73d10fe65c0b0b54d542cf73d156a56 (diff)
downloadgdb-3f6ff4799bc50e6030bb707b2b2b525fcfdd2216.zip
gdb-3f6ff4799bc50e6030bb707b2b2b525fcfdd2216.tar.gz
gdb-3f6ff4799bc50e6030bb707b2b2b525fcfdd2216.tar.bz2
Lose _r2off in powerpc64 stub names
Not a lot is conveyed by putting _r2off in a stub symbol that can't be seen by inspecting the stub code or the toc restoring instruction immediately after a call via such a stub. Also, we don't distinguish plt_call stub symbols from plt_call_r2save stub symbols, so this patch makes long branch and plt branch stub symbols consistent with that decision. bfd/ * elf64-ppc.c (ppc_build_one_stub): Lose "_r2off" in stub symbols. ld/ * testsuite/ld-powerpc/elfv2exe.d: Adjust for stub symbol change. * testsuite/ld-powerpc/tocopt6.d: Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf64-ppc.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ec4077f..e23f747 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-05 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc_build_one_stub): Lose "_r2off" in stub symbols.
+
2018-08-02 Jim Wilson <jimw@sifive.com>
* elfnn-riscv.c (riscv_elf_create_dynamic_sections): For .tdata.dyn,
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index b59a505..634e537 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -11513,9 +11513,9 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg)
size_t len1, len2;
char *name;
const char *const stub_str[] = { "long_branch",
- "long_branch_r2off",
+ "long_branch",
+ "plt_branch",
"plt_branch",
- "plt_branch_r2off",
"plt_call",
"plt_call" };