From 95f874a87e1c3645b940f09dbe022dbbd2fe0c26 Mon Sep 17 00:00:00 2001 From: Jerome Coutant Date: Mon, 12 Dec 2022 17:49:54 +0100 Subject: [PATCH] STM32F103xE: correct GCC startup file --- .../TOOLCHAIN_GCC_ARM/startup_stm32f103xe.S | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32F1/TARGET_STM32F103xE/TOOLCHAIN_GCC_ARM/startup_stm32f103xe.S b/targets/TARGET_STM/TARGET_STM32F1/TARGET_STM32F103xE/TOOLCHAIN_GCC_ARM/startup_stm32f103xe.S index 9a01cc8440..83d74d14bc 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/TARGET_STM32F103xE/TOOLCHAIN_GCC_ARM/startup_stm32f103xe.S +++ b/targets/TARGET_STM/TARGET_STM32F1/TARGET_STM32F103xE/TOOLCHAIN_GCC_ARM/startup_stm32f103xe.S @@ -93,10 +93,8 @@ 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 + bx lr bx lr .size Reset_Handler, .-Reset_Handler