Fixes #1666: Missing constructor calls for static objects

This commit is contained in:
Damjan Adamic
2014-09-03 23:05:34 +02:00
parent 78f8b60f85
commit 3dcf40b596
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -156,3 +156,8 @@ extern int _getpid ( void )
{
return -1 ;
}
void _init (void)
{
}
@@ -100,6 +100,10 @@ LoopFillZerobss:
bcc FillZerobss
/* Call the clock system intitialization function.*/
bl SystemInit
/* Call C++ constructors for static objects */
bl __libc_init_array
/* Call the application's entry point.*/
bl main
bx lr