PR ld/21529
* testsuite/ld-unique/pr21529.d: New file.
* testsuite/ld-unique/pr21529.s: Likewise.
* testsuite/ld-unique/unique.exp: Run *.d.
+
+ PR ld/21529
+ * testsuite/ld-unique/pr21529.d: New file.
+ * testsuite/ld-unique/pr21529.s: Likewise.
+ * testsuite/ld-unique/unique.exp: Run *.d.
+
* ldmain.c (main): Correct setting of link_indo.new_dtags.
--- /dev/null
+#ld: --oformat binary -e main
+#objdump: -s -b binary
+
+.*: file format binary
+
+Contents of section \.data:
+ 0000 .*
+#pass
--- /dev/null
+ .type a, %gnu_unique_object
+a: .long 0
+ .size a, .-a
+
+ .type main,"function"
+ .global main
+main:
+ .dc.a a
return
}
-run_dump_test "unique"
+set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
+foreach t $test_list {
+ # We need to strip the ".d", but can leave the dirname.
+ verbose [file rootname $t]
+ run_dump_test [file rootname $t]
+}
# We need a working compiler. (Strictly speaking this is
# not true, we could use target specific assembler files).