mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
PowerPC local got test
This is the one that causes ld segfaults between 2019-10-04 and 2019-10-07. Bug introduced withf749f26eea
, fixed by93370e8e7b
. * testsuite/ld-powerpc/localgot.s, * testsuite/ld-powerpc/localgot.d: New test. * testsuite/ld-powerpc/powerpc.exp: Run it.
This commit is contained in:
parent
46e292ab0a
commit
6446511295
@ -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.
|
||||
|
8
ld/testsuite/ld-powerpc/localgot.d
Normal file
8
ld/testsuite/ld-powerpc/localgot.d
Normal file
@ -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 .*
|
5
ld/testsuite/ld-powerpc/localgot.s
Normal file
5
ld/testsuite/ld-powerpc/localgot.s
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user