[Bug c++/16007] Use of static template members results in broken executables

ian at wasabisystems dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 15 17:12:00 GMT 2004


------- Additional Comments From ian at wasabisystems dot com  2004-06-15 17:12 -------
My take on this issue is that gcc needs to direct the assembler to create the
.gnu.linkonce.b* section with a type of SHT_NOBITS.  In standard SVR4 assembler
.section syntax, the compiler can just use @nobits, as shown at the end of the
original report.  In Solaris assembler .section syntax, I do not know how to do
this; the Solaris assembler manual does not provide any mechanism.

Possible fixes that I see: 1) On Solaris, do not use .gnu.linkonce.b*; 2) If we
are using gas on Solaris, use SVR4 assembler syntax for .section; 3) teach gas
about .gnu.linkonce.b* (not a gcc patch).  Note that options 2 and 3 break if
the users uses the Solaris assembler and the GNU linker.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16007



More information about the Gcc-bugs mailing list