Type of .gnu.linkonce.b.* sections on Solaris

Eric Botcazou ebotcazou@libertysurf.fr
Thu Jul 15 08:16:00 GMT 2004


Hi,

.gnu.linkonce.b.* sections are problematic on Solaris, as analyzed in the GCC 
PR http://gcc.gnu.org/PR16007, because they have the SHT_PROGBITS type by 
default and GCC has no way to override it with the Solaris assembler syntax.

Following Ian's suggestion, this patch teaches gas to treat them like .bss.* 
sections.  Built and tested on sparc-sun-solaris2.8.

Ok for mainline?


BFD:

2004-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: solaris_linkonceb.diff
Type: text/x-diff
Size: 676 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040715/09271d51/attachment.bin>


More information about the Binutils mailing list