From 3035ca03e8ae3e927fdcda22427cec18dba208e2 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 14 Feb 2012 20:43:26 +0000 Subject: [PATCH] PR ld/13621 * ld-elf/zerosize1.d, ld-elf/zerosize1.s: New test. --- ld/testsuite/ChangeLog | 2 +- ld/testsuite/ld-elf/zerosize1.d | 10 ++++++++++ ld/testsuite/ld-elf/zerosize1.s | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 ld/testsuite/ld-elf/zerosize1.d create mode 100644 ld/testsuite/ld-elf/zerosize1.s diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 10cd3ea76ad..dce4b7259a1 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 diff --git a/ld/testsuite/ld-elf/zerosize1.d b/ld/testsuite/ld-elf/zerosize1.d new file mode 100644 index 00000000000..ee6959271bd --- /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 00000000000..4fc8198c43a --- /dev/null +++ b/ld/testsuite/ld-elf/zerosize1.s @@ -0,0 +1,3 @@ + .section "zerosize","aw" + .globl xyzzy +xyzzy: -- 2.30.2