This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: .gnu.linkonce COFF support



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

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