This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: section `.sbss' type changed to PROGBITS (Was: ld 2.18 --gc-sections bug? (with testcase))


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]