aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/ : { *(.*) }
+}