atmel-samd: Ensure at least 2k is left for the stack.

This commit is contained in:
Scott Shawcroft 2016-10-17 15:10:00 -07:00
parent 306c921ed1
commit 853e5fc652
2 changed files with 16 additions and 0 deletions

View File

@ -64,5 +64,13 @@ SECTIONS
_ebss = .;
} >RAM
/* this just checks there is enough RAM for a minimal stack */
.stack :
{
. = ALIGN(4);
. = . + 0x800; /* Reserve a minimum of 2K for the stack. */
. = ALIGN(4);
} >RAM
.ARM.attributes 0 : { *(.ARM.attributes) }
}

View File

@ -63,5 +63,13 @@ SECTIONS
_ebss = .;
} >RAM
/* this just checks there is enough RAM for a minimal stack */
.stack :
{
. = ALIGN(4);
. = . + 0x800; /* Reserve a minimum of 2K for the stack. */
. = ALIGN(4);
} >RAM
.ARM.attributes 0 : { *(.ARM.attributes) }
}