gas: Add a testcase for PR gas/27228
PR gas/27228 * testsuite/gas/elf/elf.exp: Run pr27228. * testsuite/gas/elf/pr27228.d: New file. * testsuite/gas/elf/pr27228.s: Likewise.
This commit is contained in:
parent
9b351c9bc9
commit
eea133e655
@ -1,3 +1,10 @@
|
|||||||
|
2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR gas/27228
|
||||||
|
* testsuite/gas/elf/elf.exp: Run pr27228.
|
||||||
|
* testsuite/gas/elf/pr27228.d: New file.
|
||||||
|
* testsuite/gas/elf/pr27228.s: Likewise.
|
||||||
|
|
||||||
2021-01-24 Alan Modra <amodra@gmail.com>
|
2021-01-24 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 27228
|
PR 27228
|
||||||
|
@ -328,4 +328,5 @@ if { [is_elf_format] } then {
|
|||||||
|
|
||||||
run_dump_test "bignums"
|
run_dump_test "bignums"
|
||||||
run_dump_test "section-symbol-redef"
|
run_dump_test "section-symbol-redef"
|
||||||
|
run_dump_test "pr27228"
|
||||||
}
|
}
|
||||||
|
8
gas/testsuite/gas/elf/pr27228.d
Normal file
8
gas/testsuite/gas/elf/pr27228.d
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#as:
|
||||||
|
#name: .reloc against undefined local symbol (PR 27228)
|
||||||
|
#readelf: -sW
|
||||||
|
|
||||||
|
Symbol table '\.symtab' contains [0-9]+ entries:
|
||||||
|
#...
|
||||||
|
+[a-f0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND .LTHUNK5.lto_priv.0
|
||||||
|
#pass
|
5
gas/testsuite/gas/elf/pr27228.s
Normal file
5
gas/testsuite/gas/elf/pr27228.s
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.text
|
||||||
|
foo:
|
||||||
|
.reloc 1f,BFD_RELOC_NONE,.LTHUNK5.lto_priv.0
|
||||||
|
1:
|
||||||
|
.nop
|
Loading…
Reference in New Issue
Block a user