ld.lld: error: vmlinux.a(kernel/crash_core.o):(function crash_save_vmcoreinfo_init: .init.text+0xcb0): relocation R_RISCV_PCREL_HI20 out of range: -533294 is not in [-524288, 524287]; references kallsyms_names

From: kernel test robot
Date: Fri Dec 29 2023 - 22:36:20 EST


Hi Jens,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f016f7547aeedefed9450499d002ba983b8fce15
commit: f8fa5d76925991976b3e7076f9d1052515ec1fca cred: switch to using atomic_long_t
date: 2 weeks ago
config: riscv-randconfig-r052-20231230 (https://download.01.org/0day-ci/archive/20231230/202312301151.S5ssBkOi-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231230/202312301151.S5ssBkOi-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/202312301151.S5ssBkOi-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> ld.lld: error: vmlinux.a(kernel/crash_core.o):(function crash_save_vmcoreinfo_init: .init.text+0xcb0): relocation R_RISCV_PCREL_HI20 out of range: -533294 is not in [-524288, 524287]; references kallsyms_names
>>> referenced by crash_core.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/crash_core.o):(function crash_save_vmcoreinfo_init: .init.text+0xccc): relocation R_RISCV_PCREL_HI20 out of range: -533294 is not in [-524288, 524287]; references kallsyms_num_syms
>>> referenced by crash_core.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/crash_core.o):(function crash_save_vmcoreinfo_init: .init.text+0xce8): relocation R_RISCV_PCREL_HI20 out of range: -533294 is not in [-524288, 524287]; references kallsyms_token_table
>>> referenced by crash_core.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/crash_core.o):(function crash_save_vmcoreinfo_init: .init.text+0xd04): relocation R_RISCV_PCREL_HI20 out of range: -533294 is not in [-524288, 524287]; references kallsyms_token_index
>>> referenced by crash_core.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/crash_core.o):(function crash_save_vmcoreinfo_init: .init.text+0xd20): relocation R_RISCV_PCREL_HI20 out of range: -533294 is not in [-524288, 524287]; references kallsyms_offsets
>>> referenced by crash_core.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/crash_core.o):(function crash_save_vmcoreinfo_init: .init.text+0xd3c): relocation R_RISCV_PCREL_HI20 out of range: -533294 is not in [-524288, 524287]; references kallsyms_relative_base
>>> referenced by crash_core.c
>>> defined in vmlinux.a(kernel/kallsyms.o)

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