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:
H.J. Lu 2021-01-24 04:14:30 -08:00
parent 9b351c9bc9
commit eea133e655
4 changed files with 21 additions and 0 deletions

View File

@ -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>
PR 27228

View File

@ -328,4 +328,5 @@ if { [is_elf_format] } then {
run_dump_test "bignums"
run_dump_test "section-symbol-redef"
run_dump_test "pr27228"
}

View 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

View File

@ -0,0 +1,5 @@
.text
foo:
.reloc 1f,BFD_RELOC_NONE,.LTHUNK5.lto_priv.0
1:
.nop