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: [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.



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