From 03e12129927b0deba537a11bb5575bef93c57d0f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 7 Jul 2024 00:49:55 +0300 Subject: fixed crash with dbg_fdt() + Apparently dbg_fdt() itself wasn't buggy, but for whatever reason GCC produced an absolute load to the prefix string in __print_prefix() which caused all the issues. Unclear why, seems like a compiler bug. This commit is more of a workaround, I'd still like to investigate this further. --- arch/riscv64/conf/kernel-link.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/riscv64/conf/kernel-link.S') diff --git a/arch/riscv64/conf/kernel-link.S b/arch/riscv64/conf/kernel-link.S index 1a0d42f..832a886 100644 --- a/arch/riscv64/conf/kernel-link.S +++ b/arch/riscv64/conf/kernel-link.S @@ -11,7 +11,7 @@ SECTIONS { * hack. * @todo look into this further. */ - . = ABSOLUTE(VM_DMAP); + . = VM_DMAP; __kernel_start = .; .text ALIGN(4K) : AT(0) { *(.kernel.start); @@ -24,6 +24,7 @@ SECTIONS { .data : { *(.data*) + *(.sdata*) } .bss : { -- cgit v1.3