[patch] init_array/fini_array support
Joseph S. Myers
joseph at codesourcery.com
Tue Jan 31 03:02:27 UTC 2006
On Tue, 31 Jan 2006, Joseph S. Myers wrote:
> On Mon, 30 Jan 2006, Peter S. Mazinger wrote:
>
> > Would it be possible to add __libc_csu_init/fini to libc.so, or is it too
> > late/early? Is there a specific reason to have it in nonshared.a
> > (we don't have to mimic glibc for this) ? Does each binary have to have
> > it's own copy of it?
>
> The linker defines the symbols such as __init_array_start as hidden
> symbols in the executable, so I don't think using them from libc.so will
> work.
I can now confirm after testing that putting these functions in libc.so
definitely doesn't work. (The references to __init_array_start etc. need
to be weak simply to get libc to link.)
--
Joseph S. Myers
joseph at codesourcery.com
More information about the uClibc
mailing list