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 Wed, Mar 13, 2002 at 04:29:07PM +1030, Alan Modra wrote:
> On Tue, Mar 12, 2002 at 09:32:10PM -0800, H . J . Lu wrote:
> > On Wed, Mar 13, 2002 at 02:34:10PM +1030, Alan Modra wrote:
> > > * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Use ELF section
> > > types instead of section names to determine whether init/fini array
> > > dynamic tags are needed.
> >
> > I don't like this change. Those .xxxx_array sections are special
> > sections in the gABI. The linker script depends on that. Unless you
> > also change the linker script, it doesn't make much senses to use
> > section types here.
>
> It is one less place where we do magic things depending on section
> name.
It doesn't buy you anything. The only thing it does is to scan all
sections in input files for no good reason. However, I don't mind
checking the section type of the output section. But I don't think it
works.
BTW, those sections are magic in the gABI.
H.J.