RELOC_AGAINST_DISCARDED_SECTION zero size reloc sections

Alan Modra amodra@gmail.com
Sat Jul 19 06:20:03 GMT 2025


Update the testsuite, so that is_generic ELF targets still do the
linkonce1 test (as linkonce3).

diff --git a/ld/testsuite/ld-elf/linkonce1.d b/ld/testsuite/ld-elf/linkonce1.d
index 654171dc7a6..3920f25d54a 100644
--- a/ld/testsuite/ld-elf/linkonce1.d
+++ b/ld/testsuite/ld-elf/linkonce1.d
@@ -2,7 +2,7 @@
 #source: linkonce1b.s
 #ld: -r
 #objdump: -r
-#xfail: [is_generic]
+#notarget: [is_generic]
 
 .*:     file format .*
 #...
diff --git a/ld/testsuite/ld-elf/linkonce3.d b/ld/testsuite/ld-elf/linkonce3.d
new file mode 100644
index 00000000000..25306d2c3c2
--- /dev/null
+++ b/ld/testsuite/ld-elf/linkonce3.d
@@ -0,0 +1,13 @@
+#source: linkonce1a.s
+#source: linkonce1b.s
+#ld: -r
+#objdump: -r
+#target: [is_generic]
+
+.*:     file format .*
+#...
+RELOCATION RECORDS FOR \[.debug_frame\]:
+OFFSET[ 	]+TYPE[ 	]+VALUE[ 	]*
+.*(NONE|unused|UNUSED).*\*ABS\*
+
+#pass

-- 
Alan Modra


More information about the Binutils mailing list