aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
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 /ld/testsuite
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 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-powerpc/elfv2exe.d4
-rw-r--r--ld/testsuite/ld-powerpc/tocopt6.d8
2 files changed, 6 insertions, 6 deletions
diff --git a/ld/testsuite/ld-powerpc/elfv2exe.d b/ld/testsuite/ld-powerpc/elfv2exe.d
index d08e600..a02a3ff 100644
--- a/ld/testsuite/ld-powerpc/elfv2exe.d
+++ b/ld/testsuite/ld-powerpc/elfv2exe.d
@@ -19,7 +19,7 @@ Disassembly of section \.text:
.*: (7d 89 03 a6|a6 03 89 7d) mtctr r12
.*: (4e 80 04 20|20 04 80 4e) bctr
-0+100000e0 <.*\.long_branch_r2off\.f5>:
+0+100000e0 <.*\.long_branch\.f5>:
.*: (f8 41 00 18|18 00 41 f8) std r2,24\(r1\)
.*: (48 00 00 6c|6c 00 00 48) b .* <f5>
\.\.\.
@@ -39,7 +39,7 @@ Disassembly of section \.text:
.*: (60 00 00 00|00 00 00 60) nop
.*: (4b .. .. ..|.. .. .. 4b) bl .*\.plt_branch\.f4>
.*: (60 00 00 00|00 00 00 60) nop
-.*: (4b .. .. ..|.. .. .. 4b) bl .*\.long_branch_r2off\.f5>
+.*: (4b .. .. ..|.. .. .. 4b) bl .*\.long_branch\.f5>
.*: (e8 41 00 18|18 00 41 e8) ld r2,24\(r1\)
.*: (e8 01 00 30|30 00 01 e8) ld r0,48\(r1\)
.*: (38 21 00 20|20 00 21 38) addi r1,r1,32
diff --git a/ld/testsuite/ld-powerpc/tocopt6.d b/ld/testsuite/ld-powerpc/tocopt6.d
index a34fec1..27ca0d0 100644
--- a/ld/testsuite/ld-powerpc/tocopt6.d
+++ b/ld/testsuite/ld-powerpc/tocopt6.d
@@ -1,12 +1,12 @@
#...
-.* bl .*<.*long_branch_r2off\.f1>
+.* bl .*<.*long_branch\.f1>
.* ld *r2,40\(r1\)
-.* bl .*<.*long_branch_r2off\.f2>
+.* bl .*<.*long_branch\.f2>
.* ld *r2,40\(r1\)
.* bl .*<\.f3>
.* nop
-.* bl .*<.*long_branch_r2off\.g2>
+.* bl .*<.*long_branch\.g2>
.* ld *r2,40\(r1\)
-.* bl .*<.*long_branch_r2off\.in23>
+.* bl .*<.*long_branch\.in23>
.* ld *r2,40\(r1\)
#pass