STM32L1xx : GCC_ARM 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
Michel Jaouen 2016-10-17 17:34:28 +02:00
parent a711ff360b
commit f3b1c0a0c8
2 changed files with 18 additions and 9 deletions

View File

@ -109,11 +109,16 @@ LoopFillZerobss:
/* Call the clock system intitialization function.*/
bl SystemInit
/* Call static constructors */
bl __libc_init_array
/* Call the application's entry point.*/
bl main
/**
* 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
bx lr
.size Reset_Handler, .-Reset_Handler
/**

View File

@ -109,11 +109,15 @@ LoopFillZerobss:
/* Call the clock system intitialization function.*/
bl SystemInit
/* Call static constructors */
bl __libc_init_array
/* Call the application's entry point.*/
bl main
bx lr
/**
* 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
bx lr
.size Reset_Handler, .-Reset_Handler
/**