From 5ada54b43299564d5fa52d62abfa9648a4b6c207 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 29 Jul 2019 22:30:46 +1000 Subject: Bootloader: MassStorage: Enlarge AUX section to 8KB to fit with newer GCC versions. --- Bootloaders/MassStorage/makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bootloaders/MassStorage/makefile b/Bootloaders/MassStorage/makefile index a5ce0a16c..4a6e18e22 100644 --- a/Bootloaders/MassStorage/makefile +++ b/Bootloaders/MassStorage/makefile @@ -44,12 +44,12 @@ BOOT_API_LD_FLAGS += $(call BOOT_SECTION_LD_FLAG, .apitable_jumptable, Boot BOOT_API_LD_FLAGS += $(call BOOT_SECTION_LD_FLAG, .apitable_signatures, BootloaderAPI_Signatures, 8) # Check if the bootloader needs an AUX section, located before the real bootloader section to store some of the -# bootloader code. This is required for 32KB and smaller devices, where the actual bootloader is 6KB but the maximum +# bootloader code. This is required for 32KB and smaller devices, where the actual bootloader is 8KB but the maximum # bootloader section size is 4KB. The actual usable application space will be reduced by 6KB for these devices. ifeq ($(BOOT_SECTION_SIZE_KB),8) CC_FLAGS += -DAUX_BOOT_SECTION_SIZE=0 else - AUX_BOOT_SECTION_SIZE_KB = (6 - $(BOOT_SECTION_SIZE_KB)) + AUX_BOOT_SECTION_SIZE_KB = (8 - $(BOOT_SECTION_SIZE_KB)) CC_FLAGS += -DAUX_BOOT_SECTION_SIZE='($(AUX_BOOT_SECTION_SIZE_KB) * 1024)' LD_FLAGS += -Wl,--section-start=.boot_aux=$(call BOOT_SEC_OFFSET, (($(BOOT_SECTION_SIZE_KB) + $(AUX_BOOT_SECTION_SIZE_KB)) * 1024 - 16)) -- cgit v1.2.3