diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-08-11 08:05:00 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-08-11 08:05:00 -0700 |
commit | 9593aade74f0da0c08a4ab55e4c59173b07b1f63 (patch) | |
tree | 1b650cd68e08ae7ab3d791eec3a74c634e87d7c9 /ld | |
parent | 76db0a2e171d2c6780e0388840e3a10ffe7e9ee2 (diff) | |
download | gdb-9593aade74f0da0c08a4ab55e4c59173b07b1f63.zip gdb-9593aade74f0da0c08a4ab55e4c59173b07b1f63.tar.gz gdb-9593aade74f0da0c08a4ab55e4c59173b07b1f63.tar.bz2 |
Add 2 more tests for PR ld/21884
PR ld/21884
* testsuite/ld-i386/i386.exp: Run pr21884.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr21884.d: New file.
* testsuite/ld-i386/pr21884.t: Likewise.
* testsuite/ld-x86-64/pr21884.d: Likewise.
* testsuite/ld-x86-64/pr21884.t: Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/i386.exp | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/pr21884.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/pr21884.t | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr21884.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr21884.t | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 1 |
7 files changed, 52 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 12c3a74..484c36c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,13 @@ +2017-08-11 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/21884 + * testsuite/ld-i386/i386.exp: Run pr21884. + * testsuite/ld-x86-64/x86-64.exp: Likewise. + * testsuite/ld-i386/pr21884.d: New file. + * testsuite/ld-i386/pr21884.t: Likewise. + * testsuite/ld-x86-64/pr21884.d: Likewise. + * testsuite/ld-x86-64/pr21884.t: Likewise. + 2017-08-10 Nick Clifton <nickc@redhat.com> * scripttempl/pep.sc: Enclose __CTOR_LIST__, ___CTOR_LIST__, diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index 060a7e9..34f03e0 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -437,6 +437,7 @@ run_dump_test "property-x86-shstk4" run_dump_test "property-x86-shstk5" run_dump_test "pie1" run_dump_test "pie1-nacl" +run_dump_test "pr21884" if { !([istarget "i?86-*-linux*"] || [istarget "i?86-*-gnu*"] diff --git a/ld/testsuite/ld-i386/pr21884.d b/ld/testsuite/ld-i386/pr21884.d new file mode 100644 index 0000000..dc212d3 --- /dev/null +++ b/ld/testsuite/ld-i386/pr21884.d @@ -0,0 +1,9 @@ +#source: dummy.s +#as: --32 +#ld: -m elf_i386 -T pr21884.t -b binary +#objdump: -b binary -s + +.*: file format binary + +Contents of section .data: +#pass diff --git a/ld/testsuite/ld-i386/pr21884.t b/ld/testsuite/ld-i386/pr21884.t new file mode 100644 index 0000000..9ec7dc8 --- /dev/null +++ b/ld/testsuite/ld-i386/pr21884.t @@ -0,0 +1,11 @@ +OUTPUT_FORMAT("elf32-i386"); +OUTPUT_ARCH(i386); + +ENTRY(_start); +SECTIONS { + . = 0x10000; + _start = . ; + .data : { + *(.data) + } +} diff --git a/ld/testsuite/ld-x86-64/pr21884.d b/ld/testsuite/ld-x86-64/pr21884.d new file mode 100644 index 0000000..a62d8bc --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr21884.d @@ -0,0 +1,9 @@ +#source: dummy.s +#as: --64 +#ld: -m elf_x86_64 -T pr21884.t -b binary +#objdump: -b binary -s + +.*: file format binary + +Contents of section .data: +#pass diff --git a/ld/testsuite/ld-x86-64/pr21884.t b/ld/testsuite/ld-x86-64/pr21884.t new file mode 100644 index 0000000..f57cb3a --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr21884.t @@ -0,0 +1,11 @@ +OUTPUT_FORMAT("elf64-x86-64"); +OUTPUT_ARCH(i386:x86-64); + +ENTRY(_start); +SECTIONS { + . = 0x10000; + _start = . ; + .data : { + *(.data) + } +} diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 0375da6..0009fe3 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -365,6 +365,7 @@ run_dump_test "property-x86-shstk4" run_dump_test "property-x86-shstk4-x32" run_dump_test "property-x86-shstk5" run_dump_test "property-x86-shstk5-x32" +run_dump_test "pr21884" if { ![istarget "x86_64-*-linux*"] && ![istarget "x86_64-*-nacl*"]} { return |