From 164a349abbb05cde1b99cdfa37a094456c4209b0 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Wed, 20 May 2015 13:04:33 +0200 Subject: [PATCH] Support for COMMON blocks in the linker script --- platform/stm32f429/boot/flash.ld | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/stm32f429/boot/flash.ld b/platform/stm32f429/boot/flash.ld index 47ca6648b..3773a2e8e 100644 --- a/platform/stm32f429/boot/flash.ld +++ b/platform/stm32f429/boot/flash.ld @@ -137,6 +137,9 @@ SECTIONS { _bss_section_start_ram = .; *(.bss) *(.bss.*) + /* The compiler may choose to allocate uninitialized global variables as + * COMMON blocks. This can be disabled with -fno-common if needed. */ + *(COMMON) _bss_section_end_ram = .; } >SRAM