diff --git a/components/riscv/vectors.S b/components/riscv/vectors.S index 6c4e931f28..0b46681416 100644 --- a/components/riscv/vectors.S +++ b/components/riscv/vectors.S @@ -124,7 +124,7 @@ .global gdbstub_handle_debug_int #endif - .section .exception_vectors.text + .section .exception_vectors.text, "ax" /* Exception handler.*/ .type _panic_handler, @function diff --git a/components/riscv/vectors_intc.S b/components/riscv/vectors_intc.S index 327de97b0b..b4bd8350f2 100644 --- a/components/riscv/vectors_intc.S +++ b/components/riscv/vectors_intc.S @@ -30,7 +30,7 @@ .global _interrupt_handler .global _panic_handler - .section .exception_vectors_table.text + .section .exception_vectors_table.text, "ax" /* This is the vector table. MTVEC points here. *