altos/stmf0: Split up rom load in altos.ld to make linker happy
authorKeith Packard <keithp@keithp.com>
Fri, 14 Apr 2017 03:47:14 +0000 (21:47 -0600)
committerKeith Packard <keithp@keithp.com>
Fri, 14 Apr 2017 03:47:14 +0000 (21:47 -0600)
The linker isn't happy when the .ld file tries to add text, the .exidx
and .rodata segments in the same block. Split them up for success.

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

index 8f8933c6cc452b3769f741cf2bc615500cff4bb3..74fdf3eaeb3b595268938a0965219e157e131954 100644 (file)
@@ -55,10 +55,16 @@ SECTIONS {
                ao_product.o(.romconfig*)
 
                *(.text*)       /* Executable code */
+       } > rom
+
+       .ARM.exidx : {
                *(.ARM.exidx* .gnu.linkonce.armexidx.*)
-               *(.rodata*)     /* Constants */
+       } > rom
 
+       .rodata : {
+               *(.rodata*)     /* Constants */
        } > rom
+
        __text_end__ = .;
 
        /* Boot data which must live at the start of ram so that