Skip to content
Snippets Groups Projects
Commit 4c911213 authored by Joakim Nohlgård's avatar Joakim Nohlgård Committed by GitHub
Browse files

Merge pull request #5455 from locicontrols/move-stack

cortexm_common: move the stack to the bottom of RAM
parents 2adf76c9 87e06756
No related branches found
No related tags found
No related merge requests found
...@@ -101,6 +101,16 @@ SECTIONS ...@@ -101,6 +101,16 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_etext = .; _etext = .;
/* stack section */
.stack (NOLOAD):
{
. = ALIGN(8);
_sstack = .;
KEEP (*(.isr_stack))
. = ALIGN(8);
_estack = .;
} > ram
.relocate : AT (_etext) .relocate : AT (_etext)
{ {
. = ALIGN(4); . = ALIGN(4);
...@@ -124,16 +134,6 @@ SECTIONS ...@@ -124,16 +134,6 @@ SECTIONS
_ezero = .; _ezero = .;
} > ram } > ram
/* stack section */
.stack (NOLOAD):
{
. = ALIGN(8);
_sstack = .;
KEEP (*(.isr_stack))
. = ALIGN(8);
_estack = .;
} > ram
/* heap section */ /* heap section */
. = ALIGN(4); . = ALIGN(4);
_sheap = . ; _sheap = . ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment