From 8e616ecc6b5f5d7b4972a5a83876140c49d76cd0 Mon Sep 17 00:00:00 2001
From: DJ Delorie <dj@redhat.com>
Date: Mon, 23 Sep 2002 11:36:15 +0000
Subject: [PATCH] * scripttempl/i386go32.sc: Handle bss unique sections.

---
 ld/ChangeLog               | 4 ++++
 ld/scripttempl/i386go32.sc | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index ff65729816..98e7d42c1b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
+
+	* scripttempl/i386go32.sc: Handle bss unique sections.
+
 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
 
 	* ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
diff --git a/ld/scripttempl/i386go32.sc b/ld/scripttempl/i386go32.sc
index 482a8cbd88..54908fe110 100644
--- a/ld/scripttempl/i386go32.sc
+++ b/ld/scripttempl/i386go32.sc
@@ -57,7 +57,7 @@ SECTIONS
   ${CONSTRUCTING+${RELOCATING-$DTOR}}
   .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
   { 					
-    *(.bss)
+    *(.bss${RELOCATING+ .bss.* .gnu.linkonce.b.*})
     *(COMMON)
     ${RELOCATING+ end = . ; PROVIDE(_end = .) ;}
     ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}