This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use .init_array, .fini_array sections for ARM EABI (broke -target=avr)
- From: Daniel Jacobowitz <drow at false dot org>
- To: Paul Schlie <schlie at comcast dot net>
- Cc: Mark Mitchell <mark at codesourcery dot com>,Paul Brook <paul at codesourcery dot com>,Julian Brown <julian at codesourcery dot com>,GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 30 Apr 2005 15:56:01 -0400
- Subject: Re: [PATCH] Use .init_array, .fini_array sections for ARM EABI (broke -target=avr)
- References: <BE99585E.9FF7%schlie@comcast.net>
On Sat, Apr 30, 2005 at 03:44:30PM -0400, Paul Schlie wrote:
> >> Paul Brook wrote:
> >>> On Thursday 28 April 2005 14:55, Julian Brown wrote:
> >>>
> >>> This is a combination of three patches from the csl-arm-branch:
> >>>
> >>> http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02475.html
> >>> http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01901.html
> >>> http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01534.html
> >>>
> >>> It causes .init_array and .fini_array, rather than .ctors and .dtors, to
> >>> be used for static object construction/destruction for the ARM EABI.
> >>
> >> For the record the ARM EABI actually uses __aeabi_atexit for static object
> >> destruction. .fini_array is only used for __attribute__((destructor)).
> >> However this distinction isn't directly relevant to this patch.
> >>
> >> I can't approve it, but it looks ok to me.
> >
> >This patch is OK, thanks.
>
> This patch breaks the avr target:
>
> http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01901.html
>
> As it incompatibly modifies the definition of __main, as utilized by
> the avr target, and may possibly introduce other compatibility problems.
I am not seeing anything in the link you've referenced to explain the
problem. What goes wrong?
--
Daniel Jacobowitz
CodeSourcery, LLC