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>
Wed, 3 Oct 2018 21:51:57 +0000 (14:51 -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 21da5af591d59234cc99f88cf89b6caf7586bccd..82d33c09fbef91e845ab81aac72596168f4f5129 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