[David Mosberger <davidm@hpl.hp.com>] problem with unwind info for .init/.fini sections

H . J . Lu hjl@lucon.org
Sat Mar 2 23:22:00 GMT 2002


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.



More information about the Binutils mailing list