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 Tue, Mar 05, 2002 at 12:05:07PM +1030, Alan Modra wrote:
> On Mon, Mar 04, 2002 at 12:47:35PM -0800, H . J . Lu wrote:
> > On Mon, Mar 04, 2002 at 09:36:01PM +1030, Alan Modra wrote:
> > >
> > > This is OK to commit, although you might like to use the following
> > > elflink.h patch instead. It's based on one of your earlier patches,
> > > and has the advantage of being immune to people using custom linker
> > > scripts that define symbols in the .init_array, .fini_array or
> > > .preinit_array output sections.
> > >
> >
> > I checked in the following patch. I don't think we should check every
> > input file for .preinit_array.
>
> Huh? The code you checked in does exactly that, at least when
> finding an output section of that name.
>
There won't be an output .preinit_array section if there is no input
.preinit_array section. I think the .preinit_array is very rare.
H.J.