Skip to content

Commit dbd3eaa

Browse files
agattidpgeorge
authored andcommitted
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 <a.gatti@frob.it>
1 parent 2f52e1d commit dbd3eaa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ports/qemu/mcu/arm/mps3.ld

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ SECTIONS
2222
*(.text*)
2323
*(.rodata*)
2424
. = ALIGN(4);
25+
*(.ARM.extab*)
26+
*(.gnu.linkonce.armextab.*)
27+
. = ALIGN(4);
28+
__exidx_start = .;
2529
*(.ARM.exidx*)
30+
*(.gnu.linkonce.armexidx.*)
31+
__exidx_end = .;
2632
. = ALIGN(4);
2733
_etext = .;
2834
_sidata = _etext;

0 commit comments

Comments
 (0)