This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ vague linkage data
- From: Daniel Jacobowitz <drow at false dot org>
- To: Lubos Lunak <l dot lunak at suse dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 28 Nov 2005 10:22:01 -0500
- 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:
> Which means that in such case there's no reason to have those symbols weak,
> and having them weak means that the symbol lookup in ld.so for them will be
> more expensive (because it has to search all libraries for a non-weak symbol
> only to find out there's obviously no such thing).
That's not right. At least glibc's ld.so has not done this by default
in years; only if you export LD_DYNAMIC_WEAK=1. Weak defs are treated
exactly the same as strong defs during dynamic lookup, by default.
--
Daniel Jacobowitz
CodeSourcery, LLC