Skip to content

Commit 2f52e1d

Browse files
agattidpgeorge
authored andcommitted
qemu/mcu/arm/mps2.ld: Fix C++ linking.
This commit expands the linkerscript for MPS2-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 09c0a3c commit 2f52e1d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ports/qemu/mcu/arm/mps2.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ SECTIONS
2222
} > RAM
2323

2424
.ARM.exidx : AT ( _etext ) {
25+
. = ALIGN(4);
26+
*(.ARM.extab*)
27+
*(.gnu.linkonce.armextab.*)
2528
. = ALIGN(4);
2629
__exidx_start = .;
2730
*(.ARM.exidx*)

0 commit comments

Comments
 (0)