From 5362f92b396affd292b031478b41854e52902358 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 1 Nov 2019 10:21:49 +0800 Subject: [PATCH] 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. --- artiq/firmware/bootloader/bootloader.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/bootloader/bootloader.ld b/artiq/firmware/bootloader/bootloader.ld index 3ce00544f..22aea8cb6 100644 --- a/artiq/firmware/bootloader/bootloader.ld +++ b/artiq/firmware/bootloader/bootloader.ld @@ -46,7 +46,7 @@ SECTIONS .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; _fstack = .; } > sram