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: Paul Schlie <schlie at comcast dot net>
- To: 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:44:30 -0400
- Subject: Re: [PATCH] Use .init_array, .fini_array sections for ARM EABI(broke -target=avr)
>> 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.