targets: explicitly mark the stack as NOLOAD

This prevents it from being of type PROGBITS in lld 9, it should always
be NOBITS. It should fix the following error in lld 9:

    ROM segments are non-contiguous
This commit is contained in:
Ayke van Laethem
2019-11-12 13:25:30 +01:00
committed by Ron Evans
parent 8e6cb89ceb
commit c6255e4d0a
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ SECTIONS
/* Put the stack at the bottom of RAM, so that the application will
* crash on stack overflow instead of silently corrupting memory.
* See: http://blog.japaric.io/stack-overflow-protection/ */
.stack :
.stack (NOLOAD) :
{
. = ALIGN(4);
. += _stack_size;
+1 -1
View File
@@ -17,7 +17,7 @@ SECTIONS
*(.rodata.*)
}
.stack :
.stack (NOLOAD) :
{
. += _stack_size;
_stack_top = .;
+1 -1
View File
@@ -32,7 +32,7 @@ SECTIONS
/* Put the stack at the bottom of RAM, so that the application will
* crash on stack overflow instead of silently corrupting memory.
* See: http://blog.japaric.io/stack-overflow-protection/ */
.stack :
.stack (NOLOAD) :
{
. = ALIGN(4);
. += _stack_size;
+1 -1
View File
@@ -13,7 +13,7 @@ SECTIONS
/* Put the stack at the bottom of RAM, so that the application will
* crash on stack overflow instead of silently corrupting memory.
* See: http://blog.japaric.io/stack-overflow-protection/ */
.stack :
.stack (NOLOAD) :
{
. = ALIGN(4);
. += _stack_size;