Daniel Jacobowitz - Re: C++ vague linkage data (original) (raw)

This is the mail archive of the gcc@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]