Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions cortex-m-rt/link.x.in
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,12 @@ SECTIONS
__euninit = .;
} > RAM

/* Place the heap right after `.uninit` in RAM */
PROVIDE(__sheap = __euninit);
/* Align `__sheap` and `_stack_end` pointers to 4 bytes */
. = ALIGN(4);

/* Place stack end at the end of allocated RAM */
PROVIDE(_stack_end = __euninit);
/* Place the heap start and stack end at the end of allocated RAM */
PROVIDE(__sheap = .);
PROVIDE(_stack_end = .);

/* ## .got */
/* Dynamic relocations are unsupported. This section is only used to detect relocatable code in
Expand Down