]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: RELOC_AGAINST_DISCARDED_SECTION zero size reloc sections
authorAlan Modra <amodra@gmail.com>
Sat, 19 Jul 2025 05:57:04 +0000 (15:27 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 19 Jul 2025 06:20:44 +0000 (15:50 +0930)
Update the testsuite, so that is_generic ELF targets still do the
linkonce1 test (as linkonce3).

ld/testsuite/ld-elf/linkonce1.d
ld/testsuite/ld-elf/linkonce3.d [new file with mode: 0644]

index 654171dc7a6cec5638dcfe91905729fb996905f4..3920f25d54a3f799e7caa7d6f4f6de01d9142d00 100644 (file)
@@ -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 (file)
index 0000000..25306d2
--- /dev/null
@@ -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