Fix garbage collection of common symbols

Alan Modra amodra@gmail.com
Tue Jan 20 00:55:00 GMT 2015


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



More information about the Binutils mailing list