bootloader: disable minimum stack space check in linker script

* The value varies greatly whether netboot is enabled or not.
* There is no simple solution to detect has_ethmac in the linker script and set the value accordingly.
* The space check is an imperfect solution that will be superseded by stack pointer limits.
* Left commented out so we can re-enable it manually during development if stack corruption is suspected.
This commit is contained in:
Sebastien Bourdeauducq 2019-11-01 10:21:49 +08:00
parent deadfead2a
commit 5362f92b39
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ SECTIONS
.stack : .stack :
{ {
/* Ensure we have a certain amount of space available for stack. */ /* Ensure we have a certain amount of space available for stack. */
. = ORIGIN(sram) + LENGTH(sram) - 0x1a00; /*. = ORIGIN(sram) + LENGTH(sram) - 0x1a00; */
. = ORIGIN(sram) + LENGTH(sram) - 4; . = ORIGIN(sram) + LENGTH(sram) - 4;
_fstack = .; _fstack = .;
} > sram } > sram