Skip to content

Commit 22c04bd

Browse files
LoveKarlssonkartben
authored andcommitted
cmake: linker: Add support for shared sw isr to link file gen
The link file generator didn't have support for .gnu.linkonce.shared_sw_isr_table* Signed-off-by: Lars-Ove Karlsson <[email protected]>
1 parent 1d59f95 commit 22c04bd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

cmake/linker_script/common/common-ram.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ if(CONFIG_GEN_SW_ISR_TABLE AND CONFIG_DYNAMIC_INTERRUPTS)
1010
SECTION sw_isr_table
1111
INPUT ".gnu.linkonce.sw_isr_table*"
1212
)
13+
if(CONFIG_SHARED_INTERRUPTS)
14+
zephyr_linker_section_configure(
15+
SECTION sw_isr_table
16+
INPUT ".gnu.linkonce.shared_sw_isr_table*"
17+
)
18+
endif()
1319
endif()
1420

1521
zephyr_linker_section(NAME device_states GROUP DATA_REGION NOINPUT ${XIP_ALIGN_WITH_INPUT})

cmake/linker_script/common/common-rom.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ if(CONFIG_GEN_SW_ISR_TABLE AND NOT CONFIG_DYNAMIC_INTERRUPTS)
1717
SECTION sw_isr_table
1818
INPUT ".gnu.linkonce.sw_isr_table*"
1919
)
20+
if(CONFIG_SHARED_INTERRUPTS)
21+
zephyr_linker_section_configure(
22+
SECTION sw_isr_table
23+
INPUT ".gnu.linkonce.shared_sw_isr_table*"
24+
)
25+
endif()
2026
endif()
2127

2228
zephyr_linker_section(NAME initlevel_error KVMA RAM_REGION GROUP RODATA_REGION NOINPUT)

0 commit comments

Comments
 (0)