This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [David Mosberger <davidm@hpl.hp.com>] problem with unwind info for .init/.fini sections
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.