Skip to content

Commit 65dabf8

Browse files
agattidpgeorge
authored andcommitted
qemu/mcu/arm/stm32.ld: Fix C++ linking.
This commit expands the linkerscript for STM32-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>
1 parent 086534a commit 65dabf8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ports/qemu/mcu/arm/stm32.ld

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ SECTIONS
1919
*(.text*)
2020
*(.rodata*)
2121
. = ALIGN(4);
22+
*(.ARM.extab*)
23+
*(.gnu.linkonce.armextab.*)
24+
__exidx_start = .;
25+
*(.ARM.exidx*)
26+
*(.gnu.linkonce.armexidx.*)
27+
__exidx_end = .;
28+
. = ALIGN(4);
2229
_etext = .;
2330
_sidata = _etext;
2431
} > ROM

0 commit comments

Comments
 (0)