This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Sun, Mar 03, 2002 at 12:37:01AM -0800, Richard Henderson wrote:
> On Sun, Mar 03, 2002 at 12:32:08AM -0800, H . J . Lu wrote:
> > +  /* FIXME: The current gcc, as of 2002-03-03, will emit
> > +
> > +	.section .init_array,"aw",@progbits
> > +
> > +     for __attribute__ ((section (".init_array"))). "@progbits" marks
> > +     the incorrect section type. For now, we make them with
> > +     SHT_PROGBITS. BFD will fix the section type. Gcc should be changed
> > +     to emit
> > +
> > +	.section .init_array
> 
> That would be incorrect.  GCC must continue to emit _something_,
> particularly for allocate and write.  Really, it should emit
> @init_array or similar.
> 

Gcc doesn't emit

	.section .text,"ax",@progbits

does it? .init_array is no different from .text. It is just another
special ELF section. Gas should treat it just like .text by looking up
"special_sections". With my patch, it does.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]