[rtems commit] bsps/riscv: Workaround for sporadic linker issues

Sebastian Huber sebh at rtems.org
Fri Oct 28 11:53:23 UTC 2022

Module:    rtems
Branch:    master
Commit:    89ba2a9838558841c4f38283e84b99173790d61c
Changeset: http://git.rtems.org/rtems/commit/?id=89ba2a9838558841c4f38283e84b99173790d61c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Oct 27 14:40:26 2022 +0200

bsps/riscv: Workaround for sporadic linker issues

Disable the linker relaxation in start.S to work around an issue described


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

More information about the vc mailing list