From: Keith Packard Date: Thu, 7 Apr 2022 06:28:40 +0000 (-0700) Subject: lpc: Shuffle more bits around for flash loader X-Git-Tag: 1.9.12~1^2~17^2~3 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=3a2adf8011237852187046a551216736bd1e6bbb 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 --- 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 */