Subject: Re: dynamic linker support for .preinit_array
To: Ian Lance Taylor <ian@airs.com>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-toolchain
Date: 07/18/2005 09:53:44
On Jul 18, 2005, at 9:48 AM, Ian Lance Taylor wrote:

> There are like .init and .fini, except that instead of being a
> function which the dynamic linker should call, they are an array of
> function pointers, and the dynamic linker should call each one in
> order.  The .fini_array pointers are called in reverse order.
>
> There is also .init_array, which is the same except that the functions
> are called after .init is called.  .preinit_array functions are called
> before .init is called.  .fini_array is called before .fini.  For some
> reason nobody has invented .postfini_array.

Ok, should be reasonably straight-forward to implement.  Thank  
goodness we're using the GCC crtstuff now so we only have to modify  
ld.elf_so :-)

-- thorpej