From 3a2adf8011237852187046a551216736bd1e6bbb Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 6 Apr 2022 23:28:40 -0700 Subject: [PATCH] lpc: Shuffle more bits around for flash loader Having a fixed value at 0x2fc means splitting flash and trying to make enough space on both sides. Sigh. Signed-off-by: Keith Packard --- src/lpc/altos-loader.ld | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lpc/altos-loader.ld b/src/lpc/altos-loader.ld index a7cf147e..d8bcfb44 100644 --- a/src/lpc/altos-loader.ld +++ b/src/lpc/altos-loader.ld @@ -85,10 +85,6 @@ SECTIONS { PROVIDE(__stack = ORIGIN(ram) + LENGTH(ram)); - .no_isp : { - *(.no_isp) - } > no_isp AT>no_isp :text - .init : { KEEP (*(.text.init.enter)) KEEP (*(.data.init.enter)) @@ -98,9 +94,15 @@ SECTIONS .text.low : { ao_boot_chain.o(.text .text.*) ao_boot_pin.o(.text .text.*) + ao_flash_loader_lpc.o(.text .text.*) + ao_notask.o(*.text .text.*) ao_product.o(.rodata .rodata.*) } >low AT>low :text + .no_isp : { + *(.no_isp) + } > no_isp AT>no_isp :text + .text : { /* code */ -- 2.30.2