aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr21884-nacl.t
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-13 05:41:37 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-13 05:41:37 -0700
commit34c4758cc210e2ca042b0373938e57fd6844f89d (patch)
treea0d556e180b3b103d8d113da24a332b88cf2758c /ld/testsuite/ld-x86-64/pr21884-nacl.t
parent6d545e31f520d42d921c6164ec592e8d7614d315 (diff)
downloadgdb-34c4758cc210e2ca042b0373938e57fd6844f89d.zip
gdb-34c4758cc210e2ca042b0373938e57fd6844f89d.tar.gz
gdb-34c4758cc210e2ca042b0373938e57fd6844f89d.tar.bz2
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.
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr21884-nacl.t')
-rw-r--r--ld/testsuite/ld-x86-64/pr21884-nacl.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr21884-nacl.t b/ld/testsuite/ld-x86-64/pr21884-nacl.t
new file mode 100644
index 0000000..722312e
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr21884-nacl.t
@@ -0,0 +1,11 @@
+OUTPUT_FORMAT("elf64-x86-64-nacl");
+OUTPUT_ARCH(i386:x86-64);
+
+ENTRY(_start);
+SECTIONS {
+ . = 0x10000;
+ _start = . ;
+ .data : {
+ *(.data)
+ }
+}