Skip to content

Commit 09c0a3c

Browse files
agattidpgeorge
authored andcommitted
qemu/mcu/arm/imx6.ld: Fix C++ linking.
This commit expands the linkerscript for i.MX6-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 0124bd5 commit 09c0a3c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ports/qemu/mcu/arm/imx6.ld

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ SECTIONS
2828
*(.text*)
2929
*(.rodata*)
3030
. = ALIGN(4);
31+
*(.ARM.extab*)
32+
*(.gnulinkonce.armextab.*)
33+
. = ALIGN(4);
34+
__exidx_start = .;
35+
*(.ARM.exidx*)
36+
*(.gnu.linkonce.armexidx.*)
37+
__exidx_end = .;
3138
_etext = .;
3239
_sidata = _etext;
3340
} > RAM

0 commit comments

Comments
 (0)