This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

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


------- 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


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