File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ SECTIONS
88
88
*(.text .text.*);
89
89
*(.HardFaultTrampoline);
90
90
*(.HardFault.*);
91
- . = ALIGN(4);
92
- __etext = .;
93
91
} > FLASH
92
+ . = ALIGN(4);
93
+ __etext = .; /* Define outside of .text to allow using INSERT AFTER .text */
94
94
95
95
/* ### .rodata */
96
96
.rodata __etext : ALIGN(4)
@@ -119,14 +119,15 @@ SECTIONS
119
119
__sidata = LOADADDR(.data);
120
120
121
121
/* ### .bss */
122
+ . = ALIGN(4);
123
+ __sbss = .; /* Define outside of section to include INSERT BEFORE/AFTER symbols */
122
124
.bss (NOLOAD) : ALIGN(4)
123
125
{
124
- . = ALIGN(4);
125
- __sbss = .;
126
126
*(.bss .bss.*);
127
- . = ALIGN(4); /* 4-byte align the end (VMA) of this section */
128
- __ebss = .;
127
+ *(COMMON); /* Uninitialized C statics */
129
128
} > RAM
129
+ . = ALIGN(4); /* 4-byte align the end (VMA) of this section */
130
+ __ebss = .;
130
131
131
132
/* ### .uninit */
132
133
.uninit (NOLOAD) : ALIGN(4)
You can’t perform that action at this time.
0 commit comments