This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16007] Use of static template members results in broken executables
- From: "ian at wasabisystems dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2004 17:12:40 -0000
- Subject: [Bug c++/16007] Use of static template members results in broken executables
- References: <20040615165859.16007.kiwi@xtradyne.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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