diff options
author | 2019-10-08 11:00:11 +1030 | |
---|---|---|
committer | 2019-10-09 00:20:19 +1030 | |
commit | 6446511295653d9b18e940d1d4757ccbe358879e (patch) | |
tree | 13ba46c29578d359d74cf9e7c8840a5c11195ca0 /ld | |
parent | S/390: Add support for z15 as CPU name. (diff) | |
download | binutils-gdb-6446511295653d9b18e940d1d4757ccbe358879e.tar.gz binutils-gdb-6446511295653d9b18e940d1d4757ccbe358879e.tar.bz2 binutils-gdb-6446511295653d9b18e940d1d4757ccbe358879e.zip |
PowerPC local got test
This is the one that causes ld segfaults between 2019-10-04 and
2019-10-07. Bug introduced with f749f26eea, fixed by 93370e8e7b.
* testsuite/ld-powerpc/localgot.s,
* testsuite/ld-powerpc/localgot.d: New test.
* testsuite/ld-powerpc/powerpc.exp: Run it.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/localgot.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/localgot.s | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/powerpc.exp | 1 |
4 files changed, 20 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index a5457654088..c20425b5356 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2019-10-08 Alan Modra <amodra@gmail.com> + + * testsuite/ld-powerpc/localgot.s, + * testsuite/ld-powerpc/localgot.d: New test. + * testsuite/ld-powerpc/powerpc.exp: Run it. + 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com> * testsuite/ld-msp430-elf/attr-gnu-main.s: New test. diff --git a/ld/testsuite/ld-powerpc/localgot.d b/ld/testsuite/ld-powerpc/localgot.d new file mode 100644 index 00000000000..f58a97973a9 --- /dev/null +++ b/ld/testsuite/ld-powerpc/localgot.d @@ -0,0 +1,8 @@ +#source: localgot.s +#as: -mppc64 +#ld: -pie +#readelf: -r + +Relocation section '\.rela\.dyn' at offset .* contains 1 entry: + +Offset +Info +Type.* +.*_RELATIVE .* diff --git a/ld/testsuite/ld-powerpc/localgot.s b/ld/testsuite/ld-powerpc/localgot.s new file mode 100644 index 00000000000..600be56daf1 --- /dev/null +++ b/ld/testsuite/ld-powerpc/localgot.s @@ -0,0 +1,5 @@ + .text + .global _start +_start: +x: + ld 3,x@got(2) # isn't correct for 32-bit, but hey this is just a testcase diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp index bbd4813ebd1..7634891a60b 100644 --- a/ld/testsuite/ld-powerpc/powerpc.exp +++ b/ld/testsuite/ld-powerpc/powerpc.exp @@ -374,6 +374,7 @@ if [ supports_ppc64 ] then { run_dump_test "tlsie" } +run_dump_test "localgot" run_dump_test "tlsldopt32" run_ld_link_tests $ppceabitests |