1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #5455 from locicontrols/move-stack

cortexm_common: move the stack to the bottom of RAM
This commit is contained in:
Joakim Nohlgård 2016-06-20 14:28:10 +02:00 committed by GitHub
commit 4c91121372

View File

@ -101,6 +101,16 @@ SECTIONS
. = ALIGN(4);
_etext = .;
/* stack section */
.stack (NOLOAD):
{
. = ALIGN(8);
_sstack = .;
KEEP (*(.isr_stack))
. = ALIGN(8);
_estack = .;
} > ram
.relocate : AT (_etext)
{
. = ALIGN(4);
@ -124,16 +134,6 @@ SECTIONS
_ezero = .;
} > ram
/* stack section */
.stack (NOLOAD):
{
. = ALIGN(8);
_sstack = .;
KEEP (*(.isr_stack))
. = ALIGN(8);
_estack = .;
} > ram
/* heap section */
. = ALIGN(4);
_sheap = . ;