altos/stm32f4: Place ARM.exidx sections after .text
authorKeith Packard <keithp@keithp.com>
Wed, 12 Sep 2018 01:50:45 +0000 (18:50 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 13 Oct 2018 15:23:25 +0000 (08:23 -0700)
This makes the linker happy about not attempting to merge unordered
and ordered stuff (whatever that means...)

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

index 21da5af..82d33c0 100644 (file)
@@ -38,9 +38,13 @@ SECTIONS {
 
        .text : {
                *(.text*)       /* Executable code */
-               *(.ARM.exidx* .gnu.linkonce.armexidx.*)
                *(.rodata*)     /* Constants */
        } > rom
+
+       .exidx : {
+               *(.ARM.exidx* .gnu.linkonce.armexidx.*)
+       } > rom
+
        __text_end__ = .;
 
        /* Data -- relocated to RAM, but written to ROM