• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂d9409498813c75c1a9e9287ac6e5100ed3130390 (tree)
時間2017-06-06 06:54:12
作者H.J. Lu <hjl.tools@gmai...>
CommiterH.J. Lu

Log Message

Add a testcase for PR ld/21529

PR ld/21529
* testsuite/ld-unique/pr21529.d: New file.
* testsuite/ld-unique/pr21529.s: Likewise.
* testsuite/ld-unique/unique.exp: Run *.d.

Change Summary

差異

--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
1+2017-06-05 H.J. Lu <hongjiu.lu@intel.com>
2+
3+ PR ld/21529
4+ * testsuite/ld-unique/pr21529.d: New file.
5+ * testsuite/ld-unique/pr21529.s: Likewise.
6+ * testsuite/ld-unique/unique.exp: Run *.d.
7+
18 2017-06-05 Alan Modra <amodra@gmail.com>
29
310 * ldmain.c (main): Correct setting of link_indo.new_dtags.
--- /dev/null
+++ b/ld/testsuite/ld-unique/pr21529.d
@@ -0,0 +1,8 @@
1+#ld: --oformat binary -e main
2+#objdump: -s -b binary
3+
4+.*: file format binary
5+
6+Contents of section \.data:
7+ 0000 .*
8+#pass
--- /dev/null
+++ b/ld/testsuite/ld-unique/pr21529.s
@@ -0,0 +1,8 @@
1+ .type a, %gnu_unique_object
2+a: .long 0
3+ .size a, .-a
4+
5+ .type main,"function"
6+ .global main
7+main:
8+ .dc.a a
--- a/ld/testsuite/ld-unique/unique.exp
+++ b/ld/testsuite/ld-unique/unique.exp
@@ -35,7 +35,12 @@ if { ![supports_gnu_unique] } {
3535 return
3636 }
3737
38-run_dump_test "unique"
38+set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
39+foreach t $test_list {
40+ # We need to strip the ".d", but can leave the dirname.
41+ verbose [file rootname $t]
42+ run_dump_test [file rootname $t]
43+}
3944
4045 # We need a working compiler. (Strictly speaking this is
4146 # not true, we could use target specific assembler files).