Global constructors innitialized twice?
Posted: Wed Jun 16, 2010 3:07 pm
Hi
It seems to me as the global constructor list is traversed and invoked twice.
Once from __crtmain -> __init -> __do_global_ctors_aux (invoked from lwp code in libogc)
Secondly from main() -> __eabi -> __init -> __do_global_ctors_aux
It seems gcc inserts a call to __eabi in main(). Is this expected? Or am I missing some option to the compiler?
It seems to me as the global constructor list is traversed and invoked twice.
Once from __crtmain -> __init -> __do_global_ctors_aux (invoked from lwp code in libogc)
Secondly from main() -> __eabi -> __init -> __do_global_ctors_aux
It seems gcc inserts a call to __eabi in main(). Is this expected? Or am I missing some option to the compiler?