This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: section `.sbss' type changed to PROGBITS (Was: ld 2.18 --gc-sections bug? (with testcase))
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- Cc: binutils at sourceware dot org
- Date: Tue, 11 Dec 2007 09:58:13 +1030
- Subject: Re: section `.sbss' type changed to PROGBITS (Was: ld 2.18 --gc-sections bug? (with testcase))
- References: <200709071301.32998.vda.linux@googlemail.com> <20070907131255.GA10933@lucon.org> <200709071446.22648.vda.linux@googlemail.com> <20070908110439.GG11390@bubble.grove.modra.org> <20071210161123.GJ17368@sygehus.dk> <20071210182316.GM17368@sygehus.dk>
On Mon, Dec 10, 2007 at 07:23:17PM +0100, Rask Ingemann Lambertsen wrote:
> $ as-new ~/nobits.s -o ~/nobits.o
> as-new: section `.sbss' type changed to PROGBITS
It's an m32r gas bug.
* config/tc-m32r.c (md_begin): Mark .sbss as being bss style section.
Index: gas/config/tc-m32r.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m32r.c,v
retrieving revision 1.51
diff -u -p -r1.51 tc-m32r.c
--- gas/config/tc-m32r.c 17 Oct 2007 16:45:55 -0000 1.51
+++ gas/config/tc-m32r.c 10 Dec 2007 23:27:02 -0000
@@ -713,6 +713,7 @@ md_begin (void)
/* The sbss section is for local .scomm symbols. */
sbss_section = subseg_new (".sbss", 0);
+ seg_info (sbss_section)->bss = 1;
/* This is copied from perform_an_assembly_pass. */
applicable = bfd_applicable_section_flags (stdoutput);
--
Alan Modra
Australia Development Lab, IBM