This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [David Mosberger <davidm@hpl.hp.com>] problem with unwind info for .init/.fini sections
- From: "H . J . Lu" <hjl at lucon dot org>
- To: davidm at hpl dot hp dot com
- Cc: binutils at sources dot redhat dot com,GNU C Library <libc-alpha at sources dot redhat dot com>, gcc at gcc dot gnu dot org
- Date: Sat, 2 Mar 2002 23:22:01 -0800
- Subject: Re: [David Mosberger <davidm@hpl.hp.com>] problem with unwind info for .init/.fini sections
- References: <15489.9289.875243.619282@napali.hpl.hp.com> <20020302112708.A29383@lucon.org> <15489.10696.478128.294511@napali.hpl.hp.com> <20020302122820.A30304@lucon.org> <15489.14523.106980.19024@napali.hpl.hp.com> <20020302125350.A30699@lucon.org> <15489.15527.409686.667458@napali.hpl.hp.com> <20020302134344.A31230@lucon.org> <15489.19112.265459.271507@napali.hpl.hp.com> <20020302140749.A31609@lucon.org>
On Sat, Mar 02, 2002 at 02:07:49PM -0800, H . J . Lu wrote:
> On Sat, Mar 02, 2002 at 01:56:56PM -0800, David Mosberger wrote:
> > >>>>> On Sat, 2 Mar 2002 13:43:44 -0800, "H . J . Lu" <hjl@lucon.org> said:
> >
> > HJ> I noticed 2 problems:
> >
> > HJ> 1. glibc doesn't support .*_array in executales. elf/dl-init.c is not
> > HJ> used on executables. However, sysdeps/generic/libc-start.c doesn't
> > HJ> know how to do it. Glibc needs to be modified to call those functions
> > HJ> with __*_array_start/__*_array_end.
> >
> > Yes, I noticed that, too. Wouldn't libc-start.c also have to call the
> > preinit array if the program is statically linked?
>
> Yes.
>
There is another problem. The preinit array is only allowed in
executables. ld should generate it for DSOs. We need to check
that.
H.J.