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 @@ -88,8 +88,9 @@ SECTIONS
88
88
*(.text .text.*);
89
89
*(.HardFaultTrampoline);
90
90
*(.HardFault.*);
91
+ . = ALIGN(4); /* Pad .text to the alignment to workaround overlapping load section bug in old lld */
91
92
} > FLASH
92
- . = ALIGN(4);
93
+ . = ALIGN(4); /* Ensure __etext is aligned if something unaligned is inserted after .text */
93
94
__etext = .; /* Define outside of .text to allow using INSERT AFTER .text */
94
95
95
96
/* ### .rodata */
@@ -125,8 +126,9 @@ SECTIONS
125
126
{
126
127
*(.bss .bss.*);
127
128
*(COMMON); /* Uninitialized C statics */
129
+ . = ALIGN(4); /* 4-byte align the end (VMA) of this section */
128
130
} > RAM
129
- . = ALIGN(4); /* 4-byte align the end (VMA) of this section */
131
+ . = ALIGN(4); /* Ensure __ebss is aligned if something unaligned is inserted after .bss */
130
132
__ebss = .;
131
133
132
134
/* ### .uninit */
You can’t perform that action at this time.
0 commit comments