ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_symbol: .text+0x17c): relocation R_RISCV_PCREL_HI20 out of range: -524478 is not in [-524288, 524287]; references kallsyms_token_index
From: kernel test robot
Date: Thu May 16 2024 - 02:16:43 EST
Hi Masahiro,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3c999d1ae3c75991902a1a7dad0cb62c2a3008b4
commit: 3216484550610470013b7ce1c9ed272da0a74589 kbuild: use obj-y instead extra-y for objects placed at the head
date: 1 year, 7 months ago
config: riscv-randconfig-r063-20240515 (https://download.01.org/0day-ci/archive/20240516/202405161456.yVXb0c0v-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240516/202405161456.yVXb0c0v-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/202405161456.yVXb0c0v-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_symbol: .text+0x17c): relocation R_RISCV_PCREL_HI20 out of range: -524478 is not in [-524288, 524287]; references kallsyms_token_index
>>> referenced by kallsyms.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_symbol: .text+0x184): relocation R_RISCV_PCREL_HI20 out of range: -524478 is not in [-524288, 524287]; references kallsyms_token_table
>>> referenced by kallsyms.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_name: .text+0xec): relocation R_RISCV_PCREL_HI20 out of range: -524478 is not in [-524288, 524287]; references kallsyms_relative_base
>>> referenced by kallsyms.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_name: .text+0xf8): relocation R_RISCV_PCREL_HI20 out of range: -524478 is not in [-524288, 524287]; references kallsyms_offsets
>>> referenced by kallsyms.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_symbol: .text+0x142): relocation R_RISCV_PCREL_HI20 out of range: -524478 is not in [-524288, 524287]; references kallsyms_num_syms
>>> referenced by kallsyms.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_symbol: .text+0x15c): relocation R_RISCV_PCREL_HI20 out of range: -524478 is not in [-524288, 524287]; references kallsyms_relative_base
>>> referenced by kallsyms.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_symbol: .text+0x164): relocation R_RISCV_PCREL_HI20 out of range: -524478 is not in [-524288, 524287]; references kallsyms_names
>>> referenced by kallsyms.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_symbol: .text+0x16c): relocation R_RISCV_PCREL_HI20 out of range: -524478 is not in [-524288, 524287]; references kallsyms_offsets
>>> referenced by kallsyms.c
>>> defined in vmlinux.a(kernel/kallsyms.o)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki