File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,9 @@ SECTIONS
102
102
This is required by LLD to ensure the LMA of the following .data
103
103
section will have the correct alignment. */
104
104
. = ALIGN(4);
105
- __erodata = .;
106
105
} > FLASH
106
+ . = ALIGN(4); /* Ensure __erodata is aligned if something unaligned is inserted after .rodata */
107
+ __erodata = .;
107
108
108
109
/* ## Sections in RAM */
109
110
/* ### .data */
@@ -113,8 +114,9 @@ SECTIONS
113
114
__sdata = .;
114
115
*(.data .data.*);
115
116
. = ALIGN(4); /* 4-byte align the end (VMA) of this section */
116
- __edata = .;
117
117
} > RAM AT>FLASH
118
+ . = ALIGN(4); /* Ensure __edata is aligned if something unaligned is inserted after .data */
119
+ __edata = .;
118
120
119
121
/* LMA of .data */
120
122
__sidata = LOADADDR(.data);
You can’t perform that action at this time.
0 commit comments