[patch] init_array/fini_array support

Mike Frysinger vapier at gentoo.org
Fri Jan 20 02:01:26 UTC 2006


On Thursday 19 January 2006 08:10, Joseph S. Myers wrote:
> This patch adds support for ELF preinit_array, init_array and fini_array.

i feel like a lot of this stuff in ldso should be wrapped in 
__UCLIBC_CTOR_DTOR__

> The general approach is similar to that used by glibc, in particular
> __uClibc_main now gets passed __libc_csu_init and __libc_csu_fini instead
> of _init and _fini, and these wrapper functions take care of calling the
> init/fini array functions and _init/_fini in the right order.

elf-init.c should probably ifdef out the whole file (and not define 
__libc_csu_{init,fini} when __UCLIBC_CTOR_DTOR__ is disabled)
-mike



More information about the uClibc mailing list