Skip to content

Commit cdd92e0

Browse files
authored
Fix possible overflow of .data region in FLASH
1 parent a6b011a commit cdd92e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cortex-m-rt/link.x.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ SECTIONS
106106

107107
/* ## Sections in RAM */
108108
/* ### .data */
109-
.data : AT(__erodata) ALIGN(4)
109+
.data : ALIGN(4)
110110
{
111111
. = ALIGN(4);
112112
__sdata = .;
113113
*(.data .data.*);
114114
. = ALIGN(4); /* 4-byte align the end (VMA) of this section */
115115
__edata = .;
116-
} > RAM
116+
} > RAM AT>FLASH
117117

118118
/* LMA of .data */
119119
__sidata = LOADADDR(.data);

0 commit comments

Comments
 (0)