Skip to content

Commit b14ed47

Browse files
d3zd3znashif
authored andcommitted
linker: Include the .ARM.extab section for Rust
This is a little complicated. We currently just jump directly to rust's panic, so we aren't likely to actually need these unwind tables. But, they would be needed if we ever reall paniced. As of the time of this change, the tables seem to just be 24 bytes of ROM space. Signed-off-by: David Brown <[email protected]>
1 parent 442e212 commit b14ed47

File tree

1 file changed

+1
-1
lines changed
  • include/zephyr/arch/arm/cortex_m/scripts

1 file changed

+1
-1
lines changed

include/zephyr/arch/arm/cortex_m/scripts/linker.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ SECTIONS
174174

175175
__text_region_end = .;
176176

177-
#if defined (CONFIG_CPP)
177+
#if defined (CONFIG_CPP) || defined(CONFIG_RUST)
178178
SECTION_PROLOGUE(.ARM.extab,,)
179179
{
180180
/*

0 commit comments

Comments
 (0)