GNU Binutils with patches for OS216
リビジョン | d9409498813c75c1a9e9287ac6e5100ed3130390 (tree) |
---|---|
日時 | 2017-06-06 06:54:12 |
作者 | H.J. Lu <hjl.tools@gmai...> |
コミッター | H.J. Lu |
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.
@@ -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 | + | |
1 | 8 | 2017-06-05 Alan Modra <amodra@gmail.com> |
2 | 9 | |
3 | 10 | * ldmain.c (main): Correct setting of link_indo.new_dtags. |
@@ -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 |
@@ -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 |
@@ -35,7 +35,12 @@ if { ![supports_gnu_unique] } { | ||
35 | 35 | return |
36 | 36 | } |
37 | 37 | |
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 | +} | |
39 | 44 | |
40 | 45 | # We need a working compiler. (Strictly speaking this is |
41 | 46 | # not true, we could use target specific assembler files). |