mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
PowerPC undefweak testcase
Test for commit4916030821
andb293661219
. * testsuite/ld-powerpc/empty.s: New file. * testsuite/ld-powerpc/undefweak.d, * testsuite/ld-powerpc/undefweak.s: New testcase. * testsuite/ld-powerpc/powerpc.exp: Run it.
This commit is contained in:
parent
3897046fe0
commit
13ffdac36f
@ -1,3 +1,10 @@
|
||||
2021-05-05 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* testsuite/ld-powerpc/empty.s: New file.
|
||||
* testsuite/ld-powerpc/undefweak.d,
|
||||
* testsuite/ld-powerpc/undefweak.s: New testcase.
|
||||
* testsuite/ld-powerpc/powerpc.exp: Run it.
|
||||
|
||||
2021-05-03 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
|
||||
|
0
ld/testsuite/ld-powerpc/empty.s
Normal file
0
ld/testsuite/ld-powerpc/empty.s
Normal file
@ -172,6 +172,7 @@ set ppcelftests {
|
||||
{"relocatable relaxing large" "-melf32ppc -r --relax" "" "-a32" "relax.s big.s"
|
||||
{{objdump -dr relaxrl.d}}
|
||||
"rrelax"}
|
||||
{"build empty shared library" "-shared" "" "" "empty.s" {} "empty.so"}
|
||||
}
|
||||
|
||||
set ppc64elftests {
|
||||
@ -487,3 +488,5 @@ run_dump_test "non-contiguous-powerpc"
|
||||
|
||||
run_dump_test "tprel32"
|
||||
run_dump_test "tprelbad"
|
||||
|
||||
run_dump_test "undefweak"
|
||||
|
10
ld/testsuite/ld-powerpc/undefweak.d
Normal file
10
ld/testsuite/ld-powerpc/undefweak.d
Normal file
@ -0,0 +1,10 @@
|
||||
#ld: tmpdir/empty.so
|
||||
#readelf: --dyn-syms -r -W
|
||||
|
||||
#...
|
||||
.* R_PPC(|64)_ADDR(32|64) .* a \+ 0
|
||||
#...
|
||||
.* R_PPC(|64)_JMP_SLOT .* b \+ 0
|
||||
#...
|
||||
.* WEAK +DEFAULT +UND b
|
||||
.* WEAK +DEFAULT +UND a
|
8
ld/testsuite/ld-powerpc/undefweak.s
Normal file
8
ld/testsuite/ld-powerpc/undefweak.s
Normal file
@ -0,0 +1,8 @@
|
||||
.weak a,b
|
||||
.data
|
||||
.dc.a a
|
||||
.text
|
||||
.global _start
|
||||
_start:
|
||||
bl b
|
||||
nop
|
Loading…
Reference in New Issue
Block a user