Skip to content

Commit 94a0101

Browse files
tejlmandnashif
authored andcommitted
arch: linker: specify intList section in the IDT_LIST region
This commit specifies the intList section in the IDT_LIST region in the arch/common CMakeLists.txt file. It uses zephyr_linker_section to setup the intList section for first pass linker file and configures the section to hold irq_info and intList input section. For second pass linker file, the irq_info and intList input sections are placed in the /DISCARD/ section. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 3804029 commit 94a0101

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/common/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ zephyr_linker_sources_ifdef(CONFIG_GEN_ISR_TABLES
2424
${ZEPHYR_BASE}/include/linker/intlist.ld
2525
)
2626

27+
if(CONFIG_GEN_ISR_TABLES)
28+
zephyr_linker_section(NAME .intList VMA IDT_LIST LMA IDT_LIST NOINPUT PASS 1)
29+
zephyr_linker_section_configure(SECTION .intList KEEP INPUT ".irq_info" FIRST)
30+
zephyr_linker_section_configure(SECTION .intList KEEP INPUT ".intList")
31+
32+
zephyr_linker_section_configure(SECTION /DISCARD/ KEEP INPUT ".irq_info" PASS 2)
33+
zephyr_linker_section_configure(SECTION /DISCARD/ KEEP INPUT ".intList" PASS 2)
34+
endif()
35+
2736
zephyr_linker_sources_ifdef(CONFIG_ARCH_HAS_RAMFUNC_SUPPORT
2837
RAM_SECTIONS
2938
ramfunc.ld

0 commit comments

Comments
 (0)