This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linkonce vs comdat
- From: Mike Stump <mrs at apple dot com>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 22 Sep 2003 16:06:31 -0700
- Subject: 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.