qemu/mcu/arm/nrf51.ld: Fix C++ linking.

This commit expands the linkerscript for nRF51-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 <a.gatti@frob.it>
This commit is contained in:
Alessandro Gatti
2026-04-15 19:00:35 +02:00
committed by Damien George
parent dbd3eaaa4c
commit 086534a873
+8
View File
@@ -19,6 +19,14 @@ 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;
} > ROM