From e828dec9d0262682a37f8a757af5db30294e5907 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Mon, 2 Jun 2014 02:24:33 +0100 Subject: [PATCH] STM32F30x - Ensure static constructors are called. --- src/main/startup/startup_stm32f30x_md_gcc.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/startup/startup_stm32f30x_md_gcc.S b/src/main/startup/startup_stm32f30x_md_gcc.S index cf9e3925e..2b8e7522d 100644 --- a/src/main/startup/startup_stm32f30x_md_gcc.S +++ b/src/main/startup/startup_stm32f30x_md_gcc.S @@ -101,6 +101,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 bx lr