[Bug other/46770] Replace .ctors/.dtors with .init_array/.fini_array on targets supporting them

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Apr 17 22:27:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46770

--- Comment #88 from H.J. Lu <hjl.tools at gmail dot com> 2012-04-17 22:15:04 UTC ---
(In reply to comment #86)
> > I have seen codes like:
> >
> > void (*const init_array []) (void)
> >     __attribute__ ((section (".init_array"), aligned (sizeof (void *)))) =
> > {
> >  &init_0,
> >  &init_1,
> >  &init_2
> > };
> >
> > I don't want to reverse its order.
> 
> We will not reverse that order. Those three entries will all be in the
> same input section.

I assume init priority will be handled as usual.



More information about the Gcc-bugs mailing list