Skip to content

Commit 086534a

Browse files
agattidpgeorge
authored andcommitted
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>
1 parent dbd3eaa commit 086534a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ports/qemu/mcu/arm/nrf51.ld

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

0 commit comments

Comments
 (0)