[cxx-abi-dev] vtables by different compilers

Jessica Han jessica at cup.hp.com
Mon Jul 29 21:31:02 UTC 2002




>-----Original Message-----
>From: Mark Mitchell [mailto:mark at codesourcery.com]
>Sent: Sunday, July 28, 2002 9:44 AM
>To: jessica at cup.hp.com; cxx-abi-dev at codesourcery.com
>Subject: Re: [cxx-abi-dev] vtables by different compilers

>Yes; this is because the GNU linker does not support COMDAT.
>
>We don't *think* this should could problems -- but we don't
>know that for
>sure.
>
>The two ways to make the compilers match are to a) have GCC emit things
>in COMDAT, or b) have aCC generate them in the linkonce sections, and
>then add support for that to the HP linker.
>
>But, if we can avoid that, it would be better.  If the aCC symbols are
>weak, I would think things would work OK.
>
>--
>Mark Mitchell                   mark at codesourcery.com
>CodeSourcery, LLC               http://www.codesourcery.com
>
I do have a GNU compiler which generates COMDAT sections as the ABI
specifies by putting linkonce sections to COMDAT groups. I am using a
private HP linker which supports gABI COMDAT (aCC's COMDAT is a bit
different from the standard).
I hope this won't prohibit g++ and aCC working together. Thanks.
----
Jessica Han
Open Source Tools
Hewlett-Packard
(408) 447-6154
>




More information about the cxx-abi-dev mailing list