mirror of https://github.com/ARMmbed/mbed-os.git
STM32F0xx : GCC_ARM use a call to _start which performs
zero bss, C++ init and the call to main. Remove direct call to __libc_init_array and main not needed as _start is beeing called.pull/3074/head
parent
af090e3e6e
commit
9f20c4641d
|
@ -99,11 +99,14 @@ LoopFillZerobss:
|
|||
|
||||
/* Call the clock system intitialization function.*/
|
||||
bl SystemInit
|
||||
/* Call static constructors */
|
||||
bl __libc_init_array
|
||||
/* Call the application's entry point.*/
|
||||
bl main
|
||||
bl exit
|
||||
|
||||
/**
|
||||
* Calling the crt0 'cold-start' entry point. There __libc_init_array is called
|
||||
* and when existing hardware_init_hook() and software_init_hook() before
|
||||
* starting main(). software_init_hook() is available and has to be called due
|
||||
* to initializsation when using rtos.
|
||||
*/
|
||||
bl _start
|
||||
LoopForever:
|
||||
b LoopForever
|
||||
|
||||
|
|
|
@ -99,8 +99,7 @@ LoopFillZerobss:
|
|||
|
||||
/* Call the clock system intitialization function.*/
|
||||
bl SystemInit
|
||||
/* Call static constructors */
|
||||
bl __libc_init_array
|
||||
|
||||
/* Call the application's entry point.*/
|
||||
// bl main
|
||||
bl _start
|
||||
|
|
|
@ -99,8 +99,7 @@ LoopFillZerobss:
|
|||
|
||||
/* Call the clock system intitialization function.*/
|
||||
bl SystemInit
|
||||
/* Call static constructors */
|
||||
bl __libc_init_array
|
||||
|
||||
/* Call the application's entry point.*/
|
||||
// bl main
|
||||
bl _start
|
||||
|
|
|
@ -131,8 +131,7 @@ LoopFillZerobss:
|
|||
|
||||
/* Call the clock system intitialization function.*/
|
||||
bl SystemInit
|
||||
/* Call static constructors */
|
||||
bl __libc_init_array
|
||||
|
||||
/* Call the application's entry point.*/
|
||||
// bl main
|
||||
bl _start
|
||||
|
|
|
@ -99,8 +99,7 @@ LoopFillZerobss:
|
|||
|
||||
/* Call the clock system intitialization function.*/
|
||||
bl SystemInit
|
||||
/* Call static constructors */
|
||||
bl __libc_init_array
|
||||
|
||||
/* Call the application's entry point.*/
|
||||
// bl main
|
||||
bl _start
|
||||
|
|
Loading…
Reference in New Issue