From 20704f86cecfa3121a8a5d47080bf0a3c0d3fdfb Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Tue, 17 Aug 2021 09:09:17 +0200 Subject: [PATCH] changed binary starting location and added linker comments --- linker.ld | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linker.ld b/linker.ld index 2975ade..2248c5d 100644 --- a/linker.ld +++ b/linker.ld @@ -2,7 +2,8 @@ OUTPUT_ARCH("riscv") ENTRY(_start) SECTIONS { - . = 0x00000100; + /* start at an address > 12bit to ensure all addresses are loaded using auipc+addi instead of only addi (which is not relocatable)*/ + . = 0xffffff; .text : { *(.text._start)