aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog2
-rw-r--r--ld/testsuite/ld-elf/zerosize1.d10
-rw-r--r--ld/testsuite/ld-elf/zerosize1.s3
3 files changed, 14 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 10cd3ea..dce4b72 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -10,7 +10,7 @@
PR ld/13621
* ld-elf/warn2.d: Expect ABS section for Foo.
- * ld-elf/zerosize1.d, zerosize1.s: New test.
+ * ld-elf/zerosize1.d, ld-elf/zerosize1.s: New test.
2012-02-13 Alan Modra <amodra@gmail.com>
diff --git a/ld/testsuite/ld-elf/zerosize1.d b/ld/testsuite/ld-elf/zerosize1.d
new file mode 100644
index 0000000..ee69592
--- /dev/null
+++ b/ld/testsuite/ld-elf/zerosize1.d
@@ -0,0 +1,10 @@
+#source: start.s
+#source: zerosize1.s
+#ld:
+#readelf: -s
+
+# Check that xyzzy is not placed in the .text section.
+
+#...
+ +[0-9]+: +[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +ABS xyzzy
+#pass
diff --git a/ld/testsuite/ld-elf/zerosize1.s b/ld/testsuite/ld-elf/zerosize1.s
new file mode 100644
index 0000000..4fc8198
--- /dev/null
+++ b/ld/testsuite/ld-elf/zerosize1.s
@@ -0,0 +1,3 @@
+ .section "zerosize","aw"
+ .globl xyzzy
+xyzzy: