[PATCH] Fix ctrstuff.c with init_array support
H.J. Lu
hjl.tools@gmail.com
Tue Dec 6 03:39:00 GMT 2011
On Mon, Dec 5, 2011 at 5:42 PM, Andrew Pinski
<andrew.pinski@caviumnetworks.com> wrote:
> Hi,
> Like the .ctors array, __do_global_dtors_aux_fini_array_entry and
> __frame_dummy_init_array_entry arrays need a specific alignment. This
> patch fixes those two arrays. This patch fixes the bootstrap on
> mips64-linux-gnu.
>
> Bootstrapped on mips64-linux-gnu.
> Bootstrapped and tested on x86-linux-gnu with no regressions.
>
> Thanks,
> Andrew Pinski
>
> libgcc/ChangeLog:
> * crtstuff.c (__do_global_dtors_aux_fini_array_entry): Align to the
> size of func_ptr.
> (__frame_dummy_init_array_entry): Likewise.
.eh_frame section has similar problem:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27576
--
H.J.
More information about the Gcc-patches
mailing list