• 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

修訂3ab94f96a99e88c5cb6d5acd34bd0a35ba6f376a (tree)
時間2016-03-14 00:57:10
作者H.J. Lu <hjl.tools@gmai...>
CommiterH.J. Lu

Log Message

Add more tests for PR ld/19539

PR ld/19539
* testsuite/ld-i386/i386.exp: Run pr19539.
* testsuite/ld-i386/pr19539.d: New file.
* testsuite/ld-i386/pr19539.s: Likewise.
* testsuite/ld-i386/pr19539.t: Likewise.
* testsuite/ld-x86-64/pr19539.s: Likewise.
* testsuite/ld-x86-64/pr19539.t: Likewise.
* testsuite/ld-x86-64/pr19539a.d: Likewise.
* testsuite/ld-x86-64/pr19539b.d: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b.

Change Summary

差異

--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,16 @@
1+2016-03-13 H.J. Lu <hongjiu.lu@intel.com>
2+
3+ PR ld/19539
4+ * testsuite/ld-i386/i386.exp: Run pr19539.
5+ * testsuite/ld-i386/pr19539.d: New file.
6+ * testsuite/ld-i386/pr19539.s: Likewise.
7+ * testsuite/ld-i386/pr19539.t: Likewise.
8+ * testsuite/ld-x86-64/pr19539.s: Likewise.
9+ * testsuite/ld-x86-64/pr19539.t: Likewise.
10+ * testsuite/ld-x86-64/pr19539a.d: Likewise.
11+ * testsuite/ld-x86-64/pr19539b.d: Likewise.
12+ * testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b.
13+
114 2016-03-10 Mickael Guene <mickael.guene@st.com>
215
316 PR gas/19744
--- a/ld/testsuite/ld-i386/i386.exp
+++ b/ld/testsuite/ld-i386/i386.exp
@@ -363,6 +363,7 @@ run_dump_test "pr19609-2b"
363363 run_dump_test "pr19609-2c"
364364 run_dump_test "undefweaka"
365365 run_dump_test "undefweakb"
366+run_dump_test "pr19539"
366367
367368 if { !([istarget "i?86-*-linux*"]
368369 || [istarget "i?86-*-gnu*"]
--- /dev/null
+++ b/ld/testsuite/ld-i386/pr19539.d
@@ -0,0 +1,7 @@
1+#as: --32
2+#ld: -pie -m elf_i386 -T pr19539.t
3+#readelf: -r --wide
4+
5+Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
6+ Offset Info Type Sym. Value Symbol's Name
7+[0-9a-f]+ +[0-9a-f]+ +R_386_RELATIVE +
--- /dev/null
+++ b/ld/testsuite/ld-i386/pr19539.s
@@ -0,0 +1,6 @@
1+ .text
2+ .global _start
3+_start:
4+ .dc.a 0
5+ .section .prefix,"a",%progbits
6+ .dc.a foo
--- /dev/null
+++ b/ld/testsuite/ld-i386/pr19539.t
@@ -0,0 +1 @@
1+HIDDEN (foo = .);
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr19539.s
@@ -0,0 +1,6 @@
1+ .text
2+ .global _start
3+_start:
4+ .dc.a 0
5+ .section .prefix,"a",%progbits
6+ .dc.a foo
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr19539.t
@@ -0,0 +1 @@
1+HIDDEN (foo = .);
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr19539a.d
@@ -0,0 +1,8 @@
1+#source: pr19539.s
2+#as: --64
3+#ld: -pie -m elf_x86_64 -T pr19539.t
4+#readelf: -r --wide
5+
6+Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
7+ Offset Info Type Symbol's Value Symbol's Name \+ Addend
8+[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE +[0-9a-f]+
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr19539b.d
@@ -0,0 +1,8 @@
1+#source: pr19539.s
2+#as: --x32
3+#ld: -pie -m elf32_x86_64 -T pr19539.t
4+#readelf: -r --wide
5+
6+Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
7+ Offset Info Type Sym. Value Symbol's Name \+ Addend
8+[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE +[0-9a-f]+
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -245,6 +245,8 @@ run_dump_test "largecomm-1c"
245245 run_dump_test "largecomm-1d"
246246 run_dump_test "largecomm-1e"
247247 run_dump_test "largecomm-1f"
248+run_dump_test "pr19539a"
249+run_dump_test "pr19539b"
248250
249251 if { ![istarget "x86_64-*-linux*"] && ![istarget "x86_64-*-nacl*"]} {
250252 return