This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix garbage collection of common symbols
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 20 Jan 2015 11:25:25 +1030
- Subject: Re: Fix garbage collection of common symbols
- Authentication-results: sourceware.org; auth=none
- References: <20150119110310 dot GA12931 at bubble dot grove dot modra dot org> <CAMe9rOqQOp6JvRnVELsNzMavZM2CwtfFE1akCaJq=MO0Ggu95w at mail dot gmail dot com> <CAMe9rOrsNeYD03e_5B4CunXwB-8tdHg6GrrpysA7vd_jniXn7Q at mail dot gmail dot com>
On Mon, Jan 19, 2015 at 09:25:28AM -0800, H.J. Lu wrote:
> I checked in this patch to add a testcase for
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=17615
alpha-linux +FAIL: ld-elf/pr17615
mips64-linux +FAIL: ld-elf/pr17615
mipsel-linux-gnu +FAIL: ld-elf/pr17615
mipsisa32el-linux +FAIL: ld-elf/pr17615
mips-linux +FAIL: ld-elf/pr17615
nios2-linux +FAIL: ld-elf/pr17615
powerpc-linux +FAIL: ld-elf/pr17615
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 10f109c..8e5bda9 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-20 Alan Modra <amodra@gmail.com>
+
+ PR ld/17615
+ * ld-elf/pr17615.d: Match .sbss too.
+
2015-01-19 H.J. Lu <hongjiu.lu@intel.com>
PR ld/17615
diff --git a/ld/testsuite/ld-elf/pr17615.d b/ld/testsuite/ld-elf/pr17615.d
index a2a2f70..1b7a59b 100644
--- a/ld/testsuite/ld-elf/pr17615.d
+++ b/ld/testsuite/ld-elf/pr17615.d
@@ -6,7 +6,7 @@
# generic linker targets don't support --gc-sections, nor do a bunch of others
#...
- \[[ 0-9]+\] \.bss[ \t]+NOBITS[ \t0-9a-f]+WA.*
+ \[[ 0-9]+\] \.s?bss[ \t]+NOBITS[ \t0-9a-f]+WA.*
#...
+[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9]+ foo
#pass
--
Alan Modra
Australia Development Lab, IBM