* [rust:rust-next 2/24] ld.lld: error: kernel/built-in.a(kallsyms.o):(function get_symbol_offset: .text+0x5f0): relocation R_RISCV_PCREL_HI20 out of range: -524435 is not in [-524288, 524287]; references kallsyms_names [not found] <202205240321.sb0gX2mq-lkp@intel.com> @ 2022-06-03 10:32 ` kernel test robot 2022-06-03 11:01 ` Miguel Ojeda 0 siblings, 1 reply; 3+ messages in thread From: kernel test robot @ 2022-06-03 10:32 UTC (permalink / raw) To: Miguel Ojeda; +Cc: kbuild-all, llvm, Linux Kernel Mailing List [-- Attachment #1: Type: text/plain, Size: 1926 bytes --] tree: https://github.com/Rust-for-Linux/linux rust-next head: 9a5fe747d99e1d562dde1f39259bbe2d098262ae commit: 2087d6ac3567b38f2cddfa8fa445e595af87a04a [2/24] kallsyms: support "big" kernel symbols config: riscv-buildonly-randconfig-r002-20220523 (attached as .config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 10c9ecce9f6096e18222a331c5e7d085bd813f75) 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://github.com/Rust-for-Linux/linux/commit/2087d6ac3567b38f2cddfa8fa445e595af87a04a git remote add rust https://github.com/Rust-for-Linux/linux git fetch --no-tags rust rust-next git checkout 2087d6ac3567b38f2cddfa8fa445e595af87a04a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <yujie.liu@intel.com> All errors (new ones prefixed by >>): >> ld.lld: error: kernel/built-in.a(kallsyms.o):(function get_symbol_offset: .text+0x5f0): relocation R_RISCV_PCREL_HI20 out of range: -524435 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 get_symbol_offset: .text+0x5e0): relocation R_RISCV_PCREL_HI20 out of range: -524435 is not in [-524288, 524287]; references kallsyms_markers >>> referenced by kallsyms.c >>> defined in kernel/built-in.a(kallsyms.o) -- 0-DAY CI Kernel Test Service https://01.org/lkp [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 30851 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rust:rust-next 2/24] ld.lld: error: kernel/built-in.a(kallsyms.o):(function get_symbol_offset: .text+0x5f0): relocation R_RISCV_PCREL_HI20 out of range: -524435 is not in [-524288, 524287]; references kallsyms_names 2022-06-03 10:32 ` [rust:rust-next 2/24] ld.lld: error: kernel/built-in.a(kallsyms.o):(function get_symbol_offset: .text+0x5f0): relocation R_RISCV_PCREL_HI20 out of range: -524435 is not in [-524288, 524287]; references kallsyms_names kernel test robot @ 2022-06-03 11:01 ` Miguel Ojeda 2022-06-04 10:14 ` Yujie Liu 0 siblings, 1 reply; 3+ messages in thread From: Miguel Ojeda @ 2022-06-03 11:01 UTC (permalink / raw) To: kernel test robot Cc: Miguel Ojeda, kbuild-all, llvm, Linux Kernel Mailing List On Fri, Jun 3, 2022 at 12:32 PM kernel test robot <yujie.liu@intel.com> wrote: > > >> ld.lld: error: kernel/built-in.a(kallsyms.o):(function get_symbol_offset: .text+0x5f0): relocation R_RISCV_PCREL_HI20 out of range: -524435 is not in [-524288, 524287]; references kallsyms_names > >>> referenced by kallsyms.c > >>> defined in kernel/built-in.a(kallsyms.o) There are similar reports for the same relocation type in trees without Rust support merged, so this might not be being triggered by Rust itself, e.g.: https://lore.kernel.org/llvm/202206010956.rOpdU4dr-lkp@intel.com/ https://lore.kernel.org/llvm/202205280837.PPVZBhXr-lkp@intel.com/ Cheers, Miguel ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rust:rust-next 2/24] ld.lld: error: kernel/built-in.a(kallsyms.o):(function get_symbol_offset: .text+0x5f0): relocation R_RISCV_PCREL_HI20 out of range: -524435 is not in [-524288, 524287]; references kallsyms_names 2022-06-03 11:01 ` Miguel Ojeda @ 2022-06-04 10:14 ` Yujie Liu 0 siblings, 0 replies; 3+ messages in thread From: Yujie Liu @ 2022-06-04 10:14 UTC (permalink / raw) To: Miguel Ojeda; +Cc: Miguel Ojeda, kbuild-all, llvm, Linux Kernel Mailing List On 6/3/2022 19:01, Miguel Ojeda wrote: > On Fri, Jun 3, 2022 at 12:32 PM kernel test robot <yujie.liu@intel.com> wrote: >> >> >> ld.lld: error: kernel/built-in.a(kallsyms.o):(function get_symbol_offset: .text+0x5f0): relocation R_RISCV_PCREL_HI20 out of range: -524435 is not in [-524288, 524287]; references kallsyms_names >> >>> referenced by kallsyms.c >> >>> defined in kernel/built-in.a(kallsyms.o) > > There are similar reports for the same relocation type in trees > without Rust support merged, so this might not be being triggered by > Rust itself, e.g.: > > https://lore.kernel.org/llvm/202206010956.rOpdU4dr-lkp@intel.com/ > https://lore.kernel.org/llvm/202205280837.PPVZBhXr-lkp@intel.com/ Thanks for the info, it looks like an existing relocation issue in kallsyms under riscv arch. commit 2087d6ac3567b (kallsyms: support "big" kernel symbols) changed some code of kallsyms to support long Rust symbols, so it exposed that relocation issue and triggered this report. We'll do more checks next time to ensure the reported issue is indeed Rust related. Thanks, Yujie > > Cheers, > Miguel ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-04 10:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <202205240321.sb0gX2mq-lkp@intel.com>
2022-06-03 10:32 ` [rust:rust-next 2/24] ld.lld: error: kernel/built-in.a(kallsyms.o):(function get_symbol_offset: .text+0x5f0): relocation R_RISCV_PCREL_HI20 out of range: -524435 is not in [-524288, 524287]; references kallsyms_names kernel test robot
2022-06-03 11:01 ` Miguel Ojeda
2022-06-04 10:14 ` Yujie Liu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®