[binutils-gdb] Re: RELOC_AGAINST_DISCARDED_SECTION zero size reloc sections

Alan Modra amodra@sourceware.org
Sat Jul 19 06:20:56 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=028ad040bb6e1a004bcdc2dc2919d5e82f1171bf

commit 028ad040bb6e1a004bcdc2dc2919d5e82f1171bf
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Jul 19 15:27:04 2025 +0930

    Re: RELOC_AGAINST_DISCARDED_SECTION zero size reloc sections
    
    Update the testsuite, so that is_generic ELF targets still do the
    linkonce1 test (as linkonce3).

Diff:
---
 ld/testsuite/ld-elf/linkonce1.d |  2 +-
 ld/testsuite/ld-elf/linkonce3.d | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

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


More information about the Binutils-cvs mailing list