diff --git a/STM32F1/cores/maple/main.cpp b/STM32F1/cores/maple/main.cpp index 7305100..ab9bf0f 100644 --- a/STM32F1/cores/maple/main.cpp +++ b/STM32F1/cores/maple/main.cpp @@ -30,7 +30,7 @@ extern void init(void); // Force init to be called *first*, i.e. before static object allocation. // Otherwise, statically allocated objects that need libmaple may fail. - __attribute__(( constructor )) void premain() { + __attribute__(( constructor (0) )) void premain() { init(); }