aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-06-25 11:57:22 +0930
committerAlan Modra <amodra@gmail.com>2022-06-27 12:28:59 +0930
commit0d8fb090a7d51c79095983e22b097ba1e6eeb17b (patch)
treeb09ffa4947a18220badd00c5ac542d0e93959898 /ld/testsuite/ld-powerpc
parent648f6099d4dcadf446f3f00790ad4b16dd4042f6 (diff)
downloadgdb-0d8fb090a7d51c79095983e22b097ba1e6eeb17b.zip
gdb-0d8fb090a7d51c79095983e22b097ba1e6eeb17b.tar.gz
gdb-0d8fb090a7d51c79095983e22b097ba1e6eeb17b.tar.bz2
PowerPC64 .branch_lt address
.branch_lt is really an extension of .plt, as is .iplt. We'd like all of the PLT sections to be fixed relative to .TOC. after stub sizing, because changes in offset to PLT entries might mean a change in stub sizes. When -z relro, the relro layout does this by laying out sections from the end of the relro segment. So for example, a change in .eh_frame (which happens after stub sizing) will keep the same GOT to PLT offset when -z relro. Not so when -z norelro, because then the usual forward layout of section is done and .got is more aligned than .branch_lt. * emulparams/elf64ppc.sh: Set .branch_lt address fixed relative to .got. * testsuite/ld-powerpc/elfv2exe.d: Adjust to suit.
Diffstat (limited to 'ld/testsuite/ld-powerpc')
-rw-r--r--ld/testsuite/ld-powerpc/elfv2exe.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-powerpc/elfv2exe.d b/ld/testsuite/ld-powerpc/elfv2exe.d
index 0ccfcbf..586264d 100644
--- a/ld/testsuite/ld-powerpc/elfv2exe.d
+++ b/ld/testsuite/ld-powerpc/elfv2exe.d
@@ -9,13 +9,13 @@ Disassembly of section \.text:
0+100000c0 <.*\.plt_branch\.f4>:
.*: (3d 82 ff ff|ff ff 82 3d) addis r12,r2,-1
-.*: (e9 8c 7f 58|58 7f 8c e9) ld r12,32600\(r12\)
+.*: (e9 8c 7f f0|f0 7f 8c e9) ld r12,32752\(r12\)
.*: (7d 89 03 a6|a6 03 89 7d) mtctr r12
.*: (4e 80 04 20|20 04 80 4e) bctr
0+100000d0 <.*\.plt_branch\.f2>:
.*: (3d 82 ff ff|ff ff 82 3d) addis r12,r2,-1
-.*: (e9 8c 7f 60|60 7f 8c e9) ld r12,32608\(r12\)
+.*: (e9 8c 7f f8|f8 7f 8c e9) ld r12,32760\(r12\)
.*: (7d 89 03 a6|a6 03 89 7d) mtctr r12
.*: (4e 80 04 20|20 04 80 4e) bctr