tests/stm32: make __sdata=__edata so that cortex-m-rt doesn't try to copy it from "flash".

This commit is contained in:
Dario Nieuwenhuis 2022-01-05 13:30:08 +01:00
parent 3486d59d73
commit 58e9dfbc00

View File

@ -125,6 +125,7 @@ SECTIONS
{ {
. = ALIGN(4); . = ALIGN(4);
__sdata = .; __sdata = .;
__edata = .;
*(.data .data.*); *(.data .data.*);
. = ALIGN(4); /* 4-byte align the end (VMA) of this section */ . = ALIGN(4); /* 4-byte align the end (VMA) of this section */
} > RAM } > RAM
@ -132,7 +133,6 @@ SECTIONS
* use the .data loading mechanism by pushing __edata. Note: do not change * use the .data loading mechanism by pushing __edata. Note: do not change
* output region or load region in those user sections! */ * output region or load region in those user sections! */
. = ALIGN(4); . = ALIGN(4);
__edata = .;
/* LMA of .data */ /* LMA of .data */
__sidata = LOADADDR(.data); __sidata = LOADADDR(.data);