ld: Restore linker scripts in PR ld/21884 tests
OUTPUT_FORMAT in linker script of PR ld/21884 tests is needed to trigger PR ld/21884. Restore linker scripts and add nacl versions of the same tests. * testsuite/ld-i386/i386.exp: Run pr21884-nacl. * testsuite/ld-x86-64/x86-64.exp: Likewise. * testsuite/ld-i386/pr21884.d: Don't run on nacl targets. * testsuite/ld-x86-64/pr21884.d: Likewise. * testsuite/ld-i386/pr21884.t: Revert the last change. * testsuite/ld-x86-64/pr21884.t: Likewise. * testsuite/ld-i386/pr21884-nacl.d: New file. * testsuite/ld-i386/pr21884-nacl.t: Likewise. * testsuite/ld-x86-64/pr21884-nacl.d: Likewise. * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
This commit is contained in:
parent
6d545e31f5
commit
34c4758cc2
13
ld/ChangeLog
13
ld/ChangeLog
@ -1,3 +1,16 @@
|
||||
2017-08-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* testsuite/ld-i386/i386.exp: Run pr21884-nacl.
|
||||
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
||||
* testsuite/ld-i386/pr21884.d: Don't run on nacl targets.
|
||||
* testsuite/ld-x86-64/pr21884.d: Likewise.
|
||||
* testsuite/ld-i386/pr21884.t: Revert the last change.
|
||||
* testsuite/ld-x86-64/pr21884.t: Likewise.
|
||||
* testsuite/ld-i386/pr21884-nacl.d: New file.
|
||||
* testsuite/ld-i386/pr21884-nacl.t: Likewise.
|
||||
* testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
|
||||
* testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
|
||||
|
||||
2017-08-13 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* testsuite/ld-i386/pr21884.t: Remove unneeded format, arch and entry.
|
||||
|
@ -438,6 +438,7 @@ run_dump_test "property-x86-shstk5"
|
||||
run_dump_test "pie1"
|
||||
run_dump_test "pie1-nacl"
|
||||
run_dump_test "pr21884"
|
||||
run_dump_test "pr21884-nacl"
|
||||
|
||||
if { !([istarget "i?86-*-linux*"]
|
||||
|| [istarget "i?86-*-gnu*"]
|
||||
|
10
ld/testsuite/ld-i386/pr21884-nacl.d
Normal file
10
ld/testsuite/ld-i386/pr21884-nacl.d
Normal file
@ -0,0 +1,10 @@
|
||||
#source: dummy.s
|
||||
#as: --32
|
||||
#ld: -m elf_i386 -T pr21884-nacl.t -b binary
|
||||
#objdump: -b binary -s
|
||||
#target: i?86-*-nacl* x86_64-*-nacl*
|
||||
|
||||
.*: file format binary
|
||||
|
||||
Contents of section .data:
|
||||
#pass
|
11
ld/testsuite/ld-i386/pr21884-nacl.t
Normal file
11
ld/testsuite/ld-i386/pr21884-nacl.t
Normal file
@ -0,0 +1,11 @@
|
||||
OUTPUT_FORMAT("elf32-i386-nacl");
|
||||
OUTPUT_ARCH(i386);
|
||||
|
||||
ENTRY(_start);
|
||||
SECTIONS {
|
||||
. = 0x10000;
|
||||
_start = . ;
|
||||
.data : {
|
||||
*(.data)
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
#as: --32
|
||||
#ld: -m elf_i386 -T pr21884.t -b binary
|
||||
#objdump: -b binary -s
|
||||
#notarget: i?86-*-nacl* x86_64-*-nacl*
|
||||
|
||||
.*: file format binary
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
OUTPUT_FORMAT("elf32-i386");
|
||||
OUTPUT_ARCH(i386);
|
||||
|
||||
ENTRY(_start);
|
||||
SECTIONS {
|
||||
. = 0x10000;
|
||||
_start = . ;
|
||||
|
10
ld/testsuite/ld-x86-64/pr21884-nacl.d
Normal file
10
ld/testsuite/ld-x86-64/pr21884-nacl.d
Normal file
@ -0,0 +1,10 @@
|
||||
#source: dummy.s
|
||||
#as: --64
|
||||
#ld: -m elf_x86_64 -T pr21884-nacl.t -b binary
|
||||
#objdump: -b binary -s
|
||||
#target: x86_64-*-nacl*
|
||||
|
||||
.*: file format binary
|
||||
|
||||
Contents of section .data:
|
||||
#pass
|
11
ld/testsuite/ld-x86-64/pr21884-nacl.t
Normal file
11
ld/testsuite/ld-x86-64/pr21884-nacl.t
Normal file
@ -0,0 +1,11 @@
|
||||
OUTPUT_FORMAT("elf64-x86-64-nacl");
|
||||
OUTPUT_ARCH(i386:x86-64);
|
||||
|
||||
ENTRY(_start);
|
||||
SECTIONS {
|
||||
. = 0x10000;
|
||||
_start = . ;
|
||||
.data : {
|
||||
*(.data)
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
#as: --64
|
||||
#ld: -m elf_x86_64 -T pr21884.t -b binary
|
||||
#objdump: -b binary -s
|
||||
#notarget: x86_64-*-nacl*
|
||||
|
||||
.*: file format binary
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
OUTPUT_FORMAT("elf64-x86-64");
|
||||
OUTPUT_ARCH(i386:x86-64);
|
||||
|
||||
ENTRY(_start);
|
||||
SECTIONS {
|
||||
. = 0x10000;
|
||||
_start = . ;
|
||||
|
@ -366,6 +366,7 @@ run_dump_test "property-x86-shstk4-x32"
|
||||
run_dump_test "property-x86-shstk5"
|
||||
run_dump_test "property-x86-shstk5-x32"
|
||||
run_dump_test "pr21884"
|
||||
run_dump_test "pr21884-nacl"
|
||||
|
||||
if { ![istarget "x86_64-*-linux*"] && ![istarget "x86_64-*-nacl*"]} {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user