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 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
run_dump_test "bignums"
run_dump_test "section-symbol-redef"
+ run_dump_test "pr27228"
}
--- /dev/null
+#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
--- /dev/null
+ .text
+foo:
+ .reloc 1f,BFD_RELOC_NONE,.LTHUNK5.lto_priv.0
+1:
+ .nop