On Sun, Aug 21, 2011 at 05:09:59PM -0700, H.J. Lu wrote:
> I didn't know .init_array section was enabled for AIX.  Does this patch
> work for you?

Some ELF targets (e.g. arm*-linux*) don't use elfos.h.  IMHO you should
instead add
#ifndef __ELF__
#error NonELF
#endif
to gcc_AC_INITFINI_ARRAY test.  And/or add another test to it that tests
that you can actually use
.section .init_array
and it will use correct section flags for the section.

        Jakub

Reply via email to