[patch] init_array/fini_array support

Peter S. Mazinger ps.m at gmx.net
Tue Jan 31 21:03:20 UTC 2006


On Tue, 31 Jan 2006, John Bowler wrote:

> And:
> 
> RE: PATCH: Make environ a weak alias to __environ
> 
> I don't understand what is going on here.  In 0.9.28 it doesn't
> work at all on ARM uclibc to have a weak alias in a DLL, i.e.
> it doesn't work at all to define a visible DLL symbol weak.  It
> works fine on ARM glibc.
> 
> See the comment in ldso/dl-hash.c "Perhaps we should support old
> style weak symbol handling per what glibc does when you export
> LD_DYNAMIC_WEAK." - the code to handle weak symbols is commented out.
> 
> What this means is that, on uclibc alone, ld.so simply ignores weak
> symbol definitions in a DLL - so if you don't have a strong one the
> symbol will be undefined.

I do not know if that is related or not:
I know for sure that weak_aliases (__attribute__ ((weak, alias(#name)) 
work on ARM/uClibc, because almost all in 0.9.28 were weak, I have changed 
recently almost all of them to strong.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list