[patch] init_array/fini_array support
Joakim Tjernlund
joakim.tjernlund at transmode.se
Thu Feb 2 07:47:05 UTC 2006
> The second reference is in dl-lookup.c from _dl_lookup_symbol_x
> which is the routine which finds definitions for as yet
> unresolved symbols. The actual search code is in do-lookup.h,
> so far as I can see this *is* preferring a strong definition
> over aby weak definitions - hence the comment "Weak definition.
> Use this value if we don't find another."
No, see the test:
if (__builtin_expect (GLRO(dl_dynamic_weak), 0))
This is only true if you set env. var. LD_DYNAMIC_WEAK=1
You can change the weak behaviour dynamically, but the default
is NOT to prefer a strong definition over a weak.
Jocke
>
> John Bowler <jbowler at acm.org>
>
>
>
More information about the uClibc
mailing list