GNU Binutils with patches for OS216
修訂 | 3ab94f96a99e88c5cb6d5acd34bd0a35ba6f376a (tree) |
---|---|
時間 | 2016-03-14 00:57:10 |
作者 | H.J. Lu <hjl.tools@gmai...> |
Commiter | H.J. Lu |
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.
@@ -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 | + | |
1 | 14 | 2016-03-10 Mickael Guene <mickael.guene@st.com> |
2 | 15 | |
3 | 16 | PR gas/19744 |
@@ -363,6 +363,7 @@ run_dump_test "pr19609-2b" | ||
363 | 363 | run_dump_test "pr19609-2c" |
364 | 364 | run_dump_test "undefweaka" |
365 | 365 | run_dump_test "undefweakb" |
366 | +run_dump_test "pr19539" | |
366 | 367 | |
367 | 368 | if { !([istarget "i?86-*-linux*"] |
368 | 369 | || [istarget "i?86-*-gnu*"] |
@@ -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 + |
@@ -0,0 +1,6 @@ | ||
1 | + .text | |
2 | + .global _start | |
3 | +_start: | |
4 | + .dc.a 0 | |
5 | + .section .prefix,"a",%progbits | |
6 | + .dc.a foo |
@@ -0,0 +1 @@ | ||
1 | +HIDDEN (foo = .); |
@@ -0,0 +1,6 @@ | ||
1 | + .text | |
2 | + .global _start | |
3 | +_start: | |
4 | + .dc.a 0 | |
5 | + .section .prefix,"a",%progbits | |
6 | + .dc.a foo |
@@ -0,0 +1 @@ | ||
1 | +HIDDEN (foo = .); |
@@ -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]+ |
@@ -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]+ |
@@ -245,6 +245,8 @@ run_dump_test "largecomm-1c" | ||
245 | 245 | run_dump_test "largecomm-1d" |
246 | 246 | run_dump_test "largecomm-1e" |
247 | 247 | run_dump_test "largecomm-1f" |
248 | +run_dump_test "pr19539a" | |
249 | +run_dump_test "pr19539b" | |
248 | 250 | |
249 | 251 | if { ![istarget "x86_64-*-linux*"] && ![istarget "x86_64-*-nacl*"]} { |
250 | 252 | return |