Skip to content

Commit a825e01

Browse files
lstnljhedberg
authored andcommitted
arch: riscv: core: vector_table alignement fix
For RISCV vector table needs to be aligned depending on CONFIG_ARCH_IRQ_VECTOR_TABLE_ALIGN. This was missing when using LTO making issues when direct ISR were in use. Signed-off-by: Łukasz Stępnicki <[email protected]>
1 parent afa7b8c commit a825e01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/core/vector_table.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
88
KEEP(*(.vectors.__start))
9+
. = ALIGN(CONFIG_ARCH_IRQ_VECTOR_TABLE_ALIGN);
910
INCLUDE isr_tables_vt.ld
1011
#else
1112
KEEP(*(.vectors.*))

0 commit comments

Comments
 (0)