* ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_open: .text+0x10c0): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_markers
@ 2021-11-04 23:57 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-04 23:57 UTC (permalink / raw)
Cc: kbuild-all, llvm
[-- Attachment #1: Type: text/plain, Size: 3853 bytes --]
CC: linux-kernel@vger.kernel.org
TO: Khem Raj <raj.khem@gmail.com>
CC: Palmer Dabbelt <palmerdabbelt@google.com>
CC: Nathan Chancellor <nathan@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d4439a1189f93d0ac1eaf0197db8e6b3e197d5c7
commit: ec3a5cb61146c91f0f7dcec8b7e7157a4879a9ee riscv: Use -mno-relax when using lld linker
date: 5 months ago
config: riscv-randconfig-r012-20211104 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ec3a5cb61146c91f0f7dcec8b7e7157a4879a9ee
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ec3a5cb61146c91f0f7dcec8b7e7157a4879a9ee
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_open: .text+0x10c0): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_markers
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function reset_iter: .text+0x1170): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_markers
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function reset_iter: .text+0x1184): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_names
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function update_iter: .text+0x1580): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_num_syms
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function update_iter: .text+0x165c): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_relative_base
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_expand_symbol: .text+0x1b0): relocation R_RISCV_PCREL_HI20 out of range: -524539 is not in [-524288, 524287]; references kallsyms_names
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_expand_symbol: .text+0x1e0): relocation R_RISCV_PCREL_HI20 out of range: -524539 is not in [-524288, 524287]; references kallsyms_token_index
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_expand_symbol: .text+0x1e8): relocation R_RISCV_PCREL_HI20 out of range: -524539 is not in [-524288, 524287]; references kallsyms_token_table
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27750 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_open: .text+0x10c0): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_markers
@ 2021-11-04 23:57 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-04 23:57 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3920 bytes --]
CC: linux-kernel(a)vger.kernel.org
TO: Khem Raj <raj.khem@gmail.com>
CC: Palmer Dabbelt <palmerdabbelt@google.com>
CC: Nathan Chancellor <nathan@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d4439a1189f93d0ac1eaf0197db8e6b3e197d5c7
commit: ec3a5cb61146c91f0f7dcec8b7e7157a4879a9ee riscv: Use -mno-relax when using lld linker
date: 5 months ago
config: riscv-randconfig-r012-20211104 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ec3a5cb61146c91f0f7dcec8b7e7157a4879a9ee
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ec3a5cb61146c91f0f7dcec8b7e7157a4879a9ee
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_open: .text+0x10c0): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_markers
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function reset_iter: .text+0x1170): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_markers
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function reset_iter: .text+0x1184): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_names
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function update_iter: .text+0x1580): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_num_syms
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function update_iter: .text+0x165c): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_relative_base
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_expand_symbol: .text+0x1b0): relocation R_RISCV_PCREL_HI20 out of range: -524539 is not in [-524288, 524287]; references kallsyms_names
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_expand_symbol: .text+0x1e0): relocation R_RISCV_PCREL_HI20 out of range: -524539 is not in [-524288, 524287]; references kallsyms_token_index
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
--
>> ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_expand_symbol: .text+0x1e8): relocation R_RISCV_PCREL_HI20 out of range: -524539 is not in [-524288, 524287]; references kallsyms_token_table
>>> referenced by kallsyms.c
>>> defined in kernel/built-in.a(kallsyms.o)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27750 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-04 23:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 23:57 ld.lld: error: kernel/built-in.a(kallsyms.o):(function kallsyms_open: .text+0x10c0): relocation R_RISCV_PCREL_HI20 out of range: -524540 is not in [-524288, 524287]; references kallsyms_markers kernel test robot
2021-11-04 23:57 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.