cpp_initialize_aeabi and init_array

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cpp_initialize_aeabi and init_array

1,156 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jimmcwin on Fri Jun 29 16:45:57 MST 2012
It appears that cpp_initialize_aeabi does not initialize static constructor properly. I know the basic steps the ARM initialization needed to do for c++ library, however, I can not determine if the failure due to do something about using compile and linker that I may have failed to do. Any idea anyone ?

Thanks

Jim
Labels (1)
0 Kudos
Reply
2 Replies

1,132 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jimmcwin on Mon Jul 02 13:03:53 MST 2012

I am using latest ARM tools via makefile build. The problem that I am able to trace is that a call into a class function where it as declared a static constant was not been initialized. The first question is why this call is is generated via .init_array before a class constant constructor have not been initialized ?
I am using an external cpp user library that known to be working with Linux. I am trying to duplicate this issue with small cpp example and will let you know.

Thanks,

Jim
0 Kudos
Reply

1,132 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larsjep on Mon Jul 02 07:17:29 MST 2012
Hi,

Could you give some more details.

What toolchain do you use ?

Do you have some example code that shows the problem ?


Best regards
  Lars
0 Kudos
Reply