This is the mail archive of the gcc@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]

Re: Linkonce vs comdat


On Monday, September 22, 2003, at 03:03 PM, Matt Austern wrote:
I'm getting confused about whether the linkonce scheme that the compiler uses on ELF systems (i.e. with sections that have names like .gnu.linkonce.t.foo) is supposed to be the same thing as the COMDAT scheme that's described in http://www.codesourcery.com/cxx-abi/abi/prop-72-comdat.html.

I've fielded this one in person... Short answer, they are similar but comdat is more complete. linkonce predates comdat's implementation in binutils. binutils supports both, is used to only support linkonce. The compiler only does link once, though, someone will add comdat support and I'll probably miss it, let me know if I already missed it.



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