aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-05 14:15:21 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-05-05 14:15:21 +0000
commit18269b0999d4d6635834063d7eaeed707c536fe6 (patch)
tree5e70229640ab7b85e506174e580993334e59130a /ld/testsuite
parent1067f99890716fc3a1f90d357f105a7ddf13adc6 (diff)
downloadgdb-18269b0999d4d6635834063d7eaeed707c536fe6.zip
gdb-18269b0999d4d6635834063d7eaeed707c536fe6.tar.gz
gdb-18269b0999d4d6635834063d7eaeed707c536fe6.tar.bz2
Add a testcase for PR ld/14052
PR ld/14052 * ld-elf/pr14052.d: New file. * ld-elf/pr14052.t: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-elf/pr14052.d8
-rw-r--r--ld/testsuite/ld-elf/pr14052.t11
3 files changed, 25 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 534ed0d..ae46fd0 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-05 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/14052
+ * ld-elf/pr14052.d: New file.
+ * ld-elf/pr14052.t: Likewise.
+
2012-05-05 Alan Modra <amodra@gmail.com>
PR ld/14052
diff --git a/ld/testsuite/ld-elf/pr14052.d b/ld/testsuite/ld-elf/pr14052.d
new file mode 100644
index 0000000..dc893a3
--- /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 0000000..360c231
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr14052.t
@@ -0,0 +1,11 @@
+SECTIONS {
+ .text : {
+ *(.text)
+ }
+ . = ALIGN (0x1000);
+ .data : {
+ _data_start = .;
+ *(.data)
+ }
+ /DISCARD/ : { *(.*) }
+}