lpc: Shuffle more bits around for flash loader
authorKeith Packard <keithp@keithp.com>
Thu, 7 Apr 2022 06:28:40 +0000 (23:28 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 7 Apr 2022 06:28:40 +0000 (23:28 -0700)
Having a fixed value at 0x2fc means splitting flash and trying to make
enough space on both sides. Sigh.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/altos-loader.ld

index a7cf147e2b533a82aafc431e48e4cc980decded5..d8bcfb44b3c0db7d408694e1177d286da335a84a 100644 (file)
@@ -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 */