File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -105,31 +105,30 @@ SECTIONS
105
105
/* ### .data */
106
106
.data : ALIGN(4)
107
107
{
108
+ . = ALIGN(4);
109
+ __sdata = .;
108
110
*(.data .data.*);
109
-
110
111
. = ALIGN(4); /* 4-byte align the end (VMA) of this section */
112
+ __edata = .;
111
113
} > RAM AT > FLASH
112
114
113
- /* VMA of .data */
114
- __sdata = ADDR(.data);
115
- __edata = ADDR(.data) + SIZEOF(.data);
116
115
117
116
/* LMA of .data */
118
117
__sidata = LOADADDR(.data);
119
118
120
119
/* ### .bss */
121
120
.bss : ALIGN(4)
122
121
{
122
+ . = ALIGN(4);
123
+ __sbss = .;
123
124
*(.bss .bss.*);
124
-
125
125
. = ALIGN(4); /* 4-byte align the end (VMA) of this section */
126
+ __ebss = .;
126
127
} > RAM
127
128
128
- __sbss = ADDR(.bss);
129
- __ebss = ADDR(.bss) + SIZEOF(.bss);
130
-
131
129
/* Place the heap right after `.bss` */
132
- __sheap = ADDR(.bss) + SIZEOF(.bss);
130
+ . = ALIGN(4);
131
+ __sheap = .;
133
132
134
133
/* ## .got */
135
134
/* Dynamic relocations are unsupported. This section is only used to detect relocatable code in
You can’t perform that action at this time.
0 commit comments