This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use .init_array for static constructors for ARM EABI
- From: Paul Brook <paul at codesourcery dot com>
- To: Julian Brown <julian at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 21 Apr 2005 23:38:45 +0100
- Subject: Re: [PATCH] Use .init_array for static constructors for ARM EABI
- Organization: CodeSourcery
- References: <42682799.6080807@codesourcery.com>
On Thursday 21 April 2005 23:22, Julian Brown wrote:
> ChangeLog (Paul Brook):
>
> * config/arm/arm.c (arm_elf_asm_constructor): New function.
> * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define.
> (CTORS_SECTION_FOR_TARGET, CTOR_LIST_END, CTOR_LIST_BEGIN): Define.
> * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
> (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
Not ok.
This code was largely rewritten by this patch:
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01901.html
and a followup for .fini_array:
http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01534.html
Paul