ld.lld: error: vmlinux.a(arch/riscv/kernel/process.o):(function __show_regs: .text.unlikely.+0xc): relocation R_RISCV_HI20 out of range: 527419 is not in [-524288, 524287]; references '.L.str'

From: kernel test robot
Date: Sun Mar 23 2025 - 13:54:12 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 586de92313fcab8ed84ac5f78f4d2aae2db92c59
commit: 0043ecea2399ffc8bfd99ed9dbbe766e7c79293c vmlinux.lds.h: Adjust symbol ordering in text output section
date: 4 months ago
config: riscv-randconfig-r064-20250323 (https://download.01.org/0day-ci/archive/20250324/202503240105.hUVR2ALl-lkp@xxxxxxxxx/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project c2692afc0a92cd5da140dfcdfff7818a5b8ce997)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250324/202503240105.hUVR2ALl-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503240105.hUVR2ALl-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> ld.lld: error: vmlinux.a(arch/riscv/kernel/process.o):(function __show_regs: .text.unlikely.+0xc): relocation R_RISCV_HI20 out of range: 527419 is not in [-524288, 524287]; references '.L.str'
>>> referenced by process.c:64 (arch/riscv/kernel/process.c:64)
>>> defined in vmlinux.a(arch/riscv/kernel/process.o)

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki