From 6b97fa838235b5f19a1baff9a94409a189dacc2d Mon Sep 17 00:00:00 2001 From: Jeff Ciesielski Date: Sat, 9 Feb 2013 23:54:14 -0800 Subject: [PATCH] stm32f1x_cl: Fix stm32f107 linker script This is a critical fix which adds inclusion of the entire data/bss section to the output ELF file. Without it, the BSS section will not be zeroed out --- cpu/arm/stm32f1x_cl/STM32F107VCT.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/arm/stm32f1x_cl/STM32F107VCT.ld b/cpu/arm/stm32f1x_cl/STM32F107VCT.ld index 5d60e4979..40c396780 100644 --- a/cpu/arm/stm32f1x_cl/STM32F107VCT.ld +++ b/cpu/arm/stm32f1x_cl/STM32F107VCT.ld @@ -28,7 +28,7 @@ SECTIONS .data : { _data = . ; - *(.data) + *(.data*) . = ALIGN(4); _edata = . ; PROVIDE (_edata = .); @@ -41,7 +41,7 @@ SECTIONS { __bss_start = . ; __bss_start__ = . ; - *(.bss) + *(.bss*) *(COMMON) . = ALIGN(4); _ebss = . ;