Fixes #1666: Missing constructor calls for static objects
This commit is contained in:
@@ -156,3 +156,8 @@ extern int _getpid ( void )
|
||||
{
|
||||
return -1 ;
|
||||
}
|
||||
|
||||
void _init (void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
+4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user