diff --git a/configs/stm32f4discovery/scripts/ld.script b/configs/stm32f4discovery/scripts/ld.script index 0c3c1edda4..c7d08876d3 100644 --- a/configs/stm32f4discovery/scripts/ld.script +++ b/configs/stm32f4discovery/scripts/ld.script @@ -75,7 +75,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash