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

Richard Henderson rth@twiddle.net
Sun Mar 3 00:37:00 GMT 2002


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.



r~



More information about the Binutils mailing list