Commit 7dfda86
committed
Fix stack end placement
The stack end / heap start is placed just after `.uninit` section. It is
fine until a custom section is placed just after the `.uninit` section.
If application places a custom section just after the `.uninit` section,
there is a collision of the custom section and heap start / stack end.
There is still a solution since both `__sheap` and `_stack_end` are
designed to be overrided by an application, but changing their placement
in the proposed way can save some debugging time. Proposed fix does not
change behavior if no custom section added.1 parent f97bfe8 commit 7dfda86
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
| 185 | + | |
| 186 | + | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
0 commit comments