This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Support .preinit_array/.init_array/.fini_array in glibc
- From: "H . J . Lu" <hjl at lucon dot org>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: David Mosberger <davidm at hpl dot hp dot com>,GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Sat, 16 Mar 2002 10:07:19 -0800
- Subject: Re: Support .preinit_array/.init_array/.fini_array in glibc
- References: <20020312215650.A31446@lucon.org> <1016247298.27327.59.camel@myware.mynet>
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.