From 34c4758cc210e2ca042b0373938e57fd6844f89d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 13 Aug 2017 05:41:37 -0700 Subject: 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. --- ld/testsuite/ld-x86-64/pr21884-nacl.t | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ld/testsuite/ld-x86-64/pr21884-nacl.t (limited to 'ld/testsuite/ld-x86-64/pr21884-nacl.t') 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) + } +} -- cgit v1.1