Proposed change: weak symbol support for Darwin
Matt Austern
austern@apple.com
Wed Oct 15 18:16:00 GMT 2003
On Oct 14, 2003, at 3:00 PM, Mark Mitchell wrote:
>
>> The only reason I was reluctant to make the change globally was that
>> on most platforms (e.g. Linux/x86) the current scheme ain't broke.
>
> For right or wrong, the ABI requires that all vtables with external
> linkage have "vague linkage". Therefore, I don't think we should
> change
> the linkage of vtables on any platform, except those that don't have
> proper support for weak/COMDAT/etc.
I agree that we have to conform to what the ABI says. So this may just
be a digression, but... Do you happen to remember why the ABI says
that, and can you think of any way for a program to tell the difference
between emitting a symbol in a single translation unit with vague
linkage and emitting it with ordinary linkage?
--Matt
More information about the Gcc
mailing list