summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/qemu/mcu/arm/mps2.ld10
1 files changed, 9 insertions, 1 deletions
diff --git a/ports/qemu/mcu/arm/mps2.ld b/ports/qemu/mcu/arm/mps2.ld
index dffefa3b0..1597a7de3 100644
--- a/ports/qemu/mcu/arm/mps2.ld
+++ b/ports/qemu/mcu/arm/mps2.ld
@@ -19,7 +19,15 @@ SECTIONS
*(.rodata*)
. = ALIGN(4);
_etext = .;
- _sidata = _etext;
+ } > RAM
+
+ .ARM.exidx : AT ( _etext ) {
+ . = ALIGN(4);
+ __exidx_start = .;
+ *(.ARM.exidx*)
+ *(.gnu.linkonce.armexidx.*)
+ __exidx_end = .;
+ _sidata = __exidx_end;
} > RAM
.data : AT ( _sidata )