This is the mail archive of the gcc-patches@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: PING: PATCH: PR target/46770: Use .init_array/.fini_array sections


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


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