cpp_initialize_aeabi and init_array

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

cpp_initialize_aeabi and init_array

1,157 次查看
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
标签 (1)
0 项奖励
回复
2 回复数

1,133 次查看
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 项奖励
回复

1,133 次查看
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 项奖励
回复