diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 00:49:55 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 00:49:55 +0300 |
| commit | 03e12129927b0deba537a11bb5575bef93c57d0f (patch) | |
| tree | 3e2fce59e7c6d604e163236b44f7f96d1c31e279 /arch/riscv64/conf | |
| parent | 3fedbb6e1f849c5e0a4033d68201d60c2fc48121 (diff) | |
| download | kmi-03e12129927b0deba537a11bb5575bef93c57d0f.tar.gz kmi-03e12129927b0deba537a11bb5575bef93c57d0f.zip | |
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.
Diffstat (limited to 'arch/riscv64/conf')
| -rw-r--r-- | arch/riscv64/conf/kernel-link.S | 3 |
1 files changed, 2 insertions, 1 deletions
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 : { |
