From 18269b0999d4d6635834063d7eaeed707c536fe6 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 5 May 2012 14:15:21 +0000 Subject: [PATCH] Add a testcase for PR ld/14052 PR ld/14052 * ld-elf/pr14052.d: New file. * ld-elf/pr14052.t: Likewise. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/pr14052.d | 8 ++++++++ ld/testsuite/ld-elf/pr14052.t | 11 +++++++++++ 3 files changed, 25 insertions(+) create mode 100644 ld/testsuite/ld-elf/pr14052.d create mode 100644 ld/testsuite/ld-elf/pr14052.t diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 534ed0df197..ae46fd0c5da 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-05-05 H.J. Lu + + PR ld/14052 + * ld-elf/pr14052.d: New file. + * ld-elf/pr14052.t: Likewise. + 2012-05-05 Alan Modra PR ld/14052 diff --git a/ld/testsuite/ld-elf/pr14052.d b/ld/testsuite/ld-elf/pr14052.d new file mode 100644 index 00000000000..dc893a36250 --- /dev/null +++ b/ld/testsuite/ld-elf/pr14052.d @@ -0,0 +1,8 @@ +#source: start.s +#ld: -T pr14052.t +#readelf: -s + +#failif +#... + +[0-9]+: +[0-9a-f]+ +0 +(OBJECT|NOTYPE) +GLOBAL +DEFAULT +ABS _data_start +#... diff --git a/ld/testsuite/ld-elf/pr14052.t b/ld/testsuite/ld-elf/pr14052.t new file mode 100644 index 00000000000..360c231d9c0 --- /dev/null +++ b/ld/testsuite/ld-elf/pr14052.t @@ -0,0 +1,11 @@ +SECTIONS { + .text : { + *(.text) + } + . = ALIGN (0x1000); + .data : { + _data_start = .; + *(.data) + } + /DISCARD/ : { *(.*) } +} -- 2.30.2