Fixes #1666: Missing constructor calls for static objects
This commit is contained in:
@@ -156,3 +156,8 @@ extern int _getpid ( void )
|
|||||||
{
|
{
|
||||||
return -1 ;
|
return -1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _init (void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
+4
@@ -100,6 +100,10 @@ LoopFillZerobss:
|
|||||||
bcc FillZerobss
|
bcc FillZerobss
|
||||||
/* Call the clock system intitialization function.*/
|
/* Call the clock system intitialization function.*/
|
||||||
bl SystemInit
|
bl SystemInit
|
||||||
|
|
||||||
|
/* Call C++ constructors for static objects */
|
||||||
|
bl __libc_init_array
|
||||||
|
|
||||||
/* Call the application's entry point.*/
|
/* Call the application's entry point.*/
|
||||||
bl main
|
bl main
|
||||||
bx lr
|
bx lr
|
||||||
|
|||||||
Reference in New Issue
Block a user