Fix possible overflow of .data region in FLASH
@@ -106,14 +106,14 @@ SECTIONS
/* ## Sections in RAM */
/* ### .data */
- .data : AT(__erodata) ALIGN(4)
+ .data : ALIGN(4)
{
. = ALIGN(4);
__sdata = .;
*(.data .data.*);
. = ALIGN(4); /* 4-byte align the end (VMA) of this section */
__edata = .;
- } > RAM
+ } > RAM AT>FLASH
/* LMA of .data */
__sidata = LOADADDR(.data);
