cpp_initialize_aeabi and init_array

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

cpp_initialize_aeabi and init_array

1,155件の閲覧回数
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,131件の閲覧回数
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,131件の閲覧回数
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 件の賞賛
返信