From 89ba2a9838558841c4f38283e84b99173790d61c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 27 Oct 2022 14:40:26 +0200 Subject: bsps/riscv: Workaround for sporadic linker issues Disable the linker relaxation in start.S to work around an issue described here: https://mail.gnu.org/archive/html/bug-binutils/2021-03/msg00164.html The real issue is probably in the linker command file or the linker itself. Update #4658. --- bsps/riscv/shared/start/start.S | 1 + 1 file changed, 1 insertion(+) diff --git a/bsps/riscv/shared/start/start.S b/bsps/riscv/shared/start/start.S index 47bb485847..0b9c96c5a2 100644 --- a/bsps/riscv/shared/start/start.S +++ b/bsps/riscv/shared/start/start.S @@ -40,6 +40,7 @@ PUBLIC(_start) .section .bsp_start_text, "wax", @progbits .align 2 .option arch, +zicsr + .option norelax TYPE_FUNC(_start) SYM(_start): -- cgit v1.2.3