From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: snowball3@bigfoot.com Cc: binutils@sourceware.cygnus.com Subject: Re: .gnu.linkonce COFF support Date: Tue, 13 Jul 1999 18:45:00 -0000 Message-id: <199907140145.VAA06257@indy.delorie.com> References: <199907132141.VAA91050@out4.ibm.net> X-SW-Source: 1999-q3/msg00190.html > Some questions about possibilities for DJGPP COFF. Would enabling > .gnu.linkonce.* for DJGPP COFF improve template support much over > what weak symbols do already? This would require enabling the long > section name feature (> 8 characters) , but it can be turned on by one > line. The "long section name feature" is a remnant from PE's specs, and binutils doesn't implement it properly. The right way is to use a specially designated symbol (usually the function name's symbol) as the unique id, not the section name. I would discourage adding broken support to DJGPP when it needs to be fixed for PE anyway. If you want to go this route, figure out how to do it the right way (the MS PE way) so that we won't have to jump through hoops later when the PE support is fixed. There are some additional symbol *types* defined for PE that DJGPP could use to help with templatest, but I've never studied the C++ problems long enough to be sure.