[patch] init_array/fini_array support

Peter S. Mazinger ps.m at gmx.net
Wed Feb 1 14:56:02 UTC 2006


On Wed, 1 Feb 2006, Joakim Tjernlund wrote:

> Now you will have to use something like this for weak syms:
> extern weak fun();
> if (fun)
>     fun();

what do you happens if I try to use
libc_hidden_proto(fun)
fun() {}
libc_hidden_def(fun)

and add everywhere where fun() is used within libc.so 
libc_hidden_proto(fun), so that internally (within libc.so) it uses the
hidden version?
Will that affect the functionality of fun() ?

I am thinking here of __h_errno_location, __errno_location and 
__pthread_initialize_minimal() in __uClibc_main.c, because those are also 
present within libpthread.so.

Thanks, 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