From: Keith Packard Date: Wed, 12 Sep 2018 01:50:45 +0000 (-0700) Subject: altos/stm32f4: Place ARM.exidx sections after .text X-Git-Tag: 1.9~27^2~26 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=bb9d3d3bb1ae6223a7b910bc49ea8af5544a64d7 altos/stm32f4: Place ARM.exidx sections after .text This makes the linker happy about not attempting to merge unordered and ordered stuff (whatever that means...) Signed-off-by: Keith Packard --- diff --git a/src/stm32f4/altos-raw.ld b/src/stm32f4/altos-raw.ld index 21da5af5..82d33c09 100644 --- a/src/stm32f4/altos-raw.ld +++ b/src/stm32f4/altos-raw.ld @@ -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