This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16625] Discarded Linkonce sections in .rodata
- From: "michael dot klein at fazi dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2007 08:43:27 -0000
- Subject: [Bug c++/16625] Discarded Linkonce sections in .rodata
- References: <bug-16625-8878@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #36 from michael dot klein at fazi dot de 2007-03-05 08:43 -------
Subject: Re: Discarded Linkonce sections in .rodata
>> One possible workaround is to reorder the objects during link, so that those
>> with .gnu.linkonce.r.* come first.
>>
>> If this a compiler or a linker bug? (I'd blame the linker ;))
>
> It is most likely a Solaris specific compiler bug.
Erm, this bug was originally reported for i686-pc-linux-gnu, and none of
the 33 previous comments refers to Solaris.
Forgot to mention that the bug exhibits only with GNU ld,
Solaris ld links fine without object reordering or other tricks.
/Michael
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625