From 87db430a171fedb26835772167d3b93d8860c1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Mon, 3 Feb 2020 18:22:38 +0100 Subject: [PATCH] Remove empty lines from linker script, Make .bss section NOLOAD --- stm-firmware/stm32f407vet6_flash.ld | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/stm-firmware/stm32f407vet6_flash.ld b/stm-firmware/stm32f407vet6_flash.ld index 3d6aed7..837227c 100644 --- a/stm-firmware/stm32f407vet6_flash.ld +++ b/stm-firmware/stm32f407vet6_flash.ld @@ -124,16 +124,10 @@ SECTIONS _sccmram = .; /* create a global symbol at ccmram start */ *(.ccmram) *(.ccmram*) - . = ALIGN(4); _eccmram = .; /* create a global symbol at ccmram end */ } >CCM AT> FLASH - - - - - _sidata = LOADADDR(.data); /* Initialized data sections goes into RAM, load LMA copy after code */ @@ -143,7 +137,6 @@ SECTIONS _sdata = .; /* create a global symbol at data start */ *(.data) /* .data sections */ *(.data*) /* .data* sections */ - . = ALIGN(4); _edata = .; /* define a global symbol at data end */ } >RAM AT> FLASH @@ -152,7 +145,7 @@ SECTIONS /* Uninitialized data section */ . = ALIGN(4); - .bss : + .bss (NOLOAD): { /* This is used by the startup in order to initialize the .bss secion */ _sbss = .; /* define a global symbol at bss start */