From 58e9dfbc00c0fed1400ecf8c3827f476a25b7c11 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 5 Jan 2022 13:30:08 +0100 Subject: [PATCH] tests/stm32: make __sdata=__edata so that cortex-m-rt doesn't try to copy it from "flash". --- tests/stm32/link_ram.x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/stm32/link_ram.x b/tests/stm32/link_ram.x index d23ffc74..26da86ba 100644 --- a/tests/stm32/link_ram.x +++ b/tests/stm32/link_ram.x @@ -125,6 +125,7 @@ SECTIONS { . = ALIGN(4); __sdata = .; + __edata = .; *(.data .data.*); . = ALIGN(4); /* 4-byte align the end (VMA) of this section */ } > RAM @@ -132,7 +133,6 @@ SECTIONS * use the .data loading mechanism by pushing __edata. Note: do not change * output region or load region in those user sections! */ . = ALIGN(4); - __edata = .; /* LMA of .data */ __sidata = LOADADDR(.data);