From dbd3eaaa4c3972a0196e59cdcb00a997d3d9a25c Mon Sep 17 00:00:00 2001 From: Alessandro Gatti Date: Wed, 15 Apr 2026 18:57:23 +0200 Subject: [PATCH] qemu/mcu/arm/mps3.ld: Fix C++ linking. This commit expands the linkerscript for MPS3-series boards to let C++ code link with the interpreter core. The linkerscript now contains all necessary sections for C++ code that uses exceptions to be part of a user module inside the MicroPython image. Signed-off-by: Alessandro Gatti --- ports/qemu/mcu/arm/mps3.ld | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ports/qemu/mcu/arm/mps3.ld b/ports/qemu/mcu/arm/mps3.ld index 6a576f355f..545181e9b2 100644 --- a/ports/qemu/mcu/arm/mps3.ld +++ b/ports/qemu/mcu/arm/mps3.ld @@ -22,7 +22,13 @@ SECTIONS *(.text*) *(.rodata*) . = ALIGN(4); + *(.ARM.extab*) + *(.gnu.linkonce.armextab.*) + . = ALIGN(4); + __exidx_start = .; *(.ARM.exidx*) + *(.gnu.linkonce.armexidx.*) + __exidx_end = .; . = ALIGN(4); _etext = .; _sidata = _etext;