Support .preinit_array/.init_array/.fini_array in glibc
H . J . Lu
hjl@lucon.org
Sat Mar 16 10:07:00 GMT 2002
On Fri, Mar 15, 2002 at 06:54:58PM -0800, Ulrich Drepper wrote:
> On Tue, 2002-03-12 at 21:56, H . J . Lu wrote:
> > Here is an update. It won't try to run those new tests with the old
> > binutils.
>
> I've been putting off handling this patch since I think it's wrong.
> ld.so must not assume non-standard symbols being present to work
> correctly. The ELF spec has a documented way to access the init/fini
> arrays and this way should be followed.
The ELF spec doesn't cover static binaries. I don't know how you can
access those arrays easily without some special symbols from ld.
H.J.
More information about the Libc-alpha
mailing list