Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] compatibility between .init_array and CTOR


  • To: Sun Yanfei <Yanfei.Sun@xxxxxxxxxxxxx>
  • Subject: Re: [arm-gnu] compatibility between .init_array and CTOR
  • From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Date: Tue, 13 May 2008 07:23:51 -0700

Sun Yanfei wrote:
Hi All,
When using arm-none-eabi instead of arm-elf to build redboot, _CTOR_LIST == _CTOR_END, so no class initializations were did. I checked the elf file and found that all the constructors were put in section ".rel.init_array", so caused such errors.I wonder if .init_array and .finit_array were not supported by arm-elf while CTOR and DTOR not supported by arm-none-eabi.

.{init,fini}_array are required by the ARM EABI. It sounds like your version of redboot is not set for the ARM EABI.

--
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713