File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -88,29 +88,32 @@ SECTIONS
88
88
*(.text .text.*);
89
89
*(.HardFaultTrampoline);
90
90
*(.HardFault.*);
91
+ . = ALIGN(4);
92
+ __etext = .;
91
93
} > FLASH
92
94
93
95
/* ### .rodata */
94
- .rodata : ALIGN(4)
96
+ .rodata __etext : ALIGN(4)
95
97
{
96
98
*(.rodata .rodata.*);
97
99
98
100
/* 4-byte align the end (VMA) of this section.
99
101
This is required by LLD to ensure the LMA of the following .data
100
102
section will have the correct alignment. */
101
103
. = ALIGN(4);
104
+ __erodata = .;
102
105
} > FLASH
103
106
104
107
/* ## Sections in RAM */
105
108
/* ### .data */
106
- .data : ALIGN(4)
109
+ .data : AT(__erodata) ALIGN(4)
107
110
{
108
111
. = ALIGN(4);
109
112
__sdata = .;
110
113
*(.data .data.*);
111
114
. = ALIGN(4); /* 4-byte align the end (VMA) of this section */
112
115
__edata = .;
113
- } > RAM AT > FLASH
116
+ } > RAM
114
117
115
118
/* LMA of .data */
116
119
__sidata = LOADADDR(.data);
You can’t perform that action at this time.
0 commit comments