This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ vague linkage data
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Lubos Lunak <l dot lunak at suse dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 28 Nov 2005 09:20:44 -0800
- Subject: Re: C++ vague linkage data
- References: <200511281610.55454.l.lunak@suse.cz>
On Mon, Nov 28, 2005 at 04:10:55PM +0100, Lubos Lunak wrote:
> when gcc emits vague linkage data for C++ like vtables it makes them all
> weak. Is there some reason why this needs to be done?
In the case of vtables, they are only weak if all the virtual functions
are defined as inline. Otherwise the vtable is defined only in the
.o file that defines the first non-inline virtual function.