This is the mail archive of the
mailing list for the GCC project.
Re: Proposed change: weak symbol support for Darwin
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
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?