From bb9d3d3bb1ae6223a7b910bc49ea8af5544a64d7 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 11 Sep 2018 18:50:45 -0700 Subject: [PATCH] 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 --- src/stm32f4/altos-raw.ld | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2