diff --git a/targets/arm.ld b/targets/arm.ld index 0d5c12f16..f1e82c570 100644 --- a/targets/arm.ld +++ b/targets/arm.ld @@ -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; diff --git a/targets/avr.ld b/targets/avr.ld index 34c881f90..179267df3 100644 --- a/targets/avr.ld +++ b/targets/avr.ld @@ -17,7 +17,7 @@ SECTIONS *(.rodata.*) } - .stack : + .stack (NOLOAD) : { . += _stack_size; _stack_top = .; diff --git a/targets/gameboy-advance.ld b/targets/gameboy-advance.ld index 490f81920..5fd516964 100644 --- a/targets/gameboy-advance.ld +++ b/targets/gameboy-advance.ld @@ -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; diff --git a/targets/riscv.ld b/targets/riscv.ld index 857d2ee48..1e086e537 100644 --- a/targets/riscv.ld +++ b/targets/riscv.ld @@ -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;