aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2012-02-14 20:43:26 +0000
committerRichard Henderson <rth@redhat.com>2012-02-14 20:43:26 +0000
commit3035ca03e8ae3e927fdcda22427cec18dba208e2 (patch)
tree426787711b4b689be485a07d38bb4003fd21612f
parentc47a44f4a83baa8be8de53eadd9b6eb34cdcad5d (diff)
downloadgdb-3035ca03e8ae3e927fdcda22427cec18dba208e2.zip
gdb-3035ca03e8ae3e927fdcda22427cec18dba208e2.tar.gz
gdb-3035ca03e8ae3e927fdcda22427cec18dba208e2.tar.bz2
PR ld/13621
* ld-elf/zerosize1.d, ld-elf/zerosize1.s: New test.
-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: