riscv64-linux-ld: section .init.pi.text LMA [000000000197e820,0000000001981733] overlaps section .data..percpu LMA [0000000001951000,0000000001b219d7]

From: kernel test robot
Date: Thu Jun 15 2023 - 04:30:36 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b6dad5178ceaf23f369c3711062ce1f2afc33644
commit: 3b90b09af5be42491a8a74a549318cfa265b3029 riscv: Fix orphan section warnings caused by kernel/pi
date: 5 weeks ago
config: riscv-randconfig-r004-20230615 (https://download.01.org/0day-ci/archive/20230615/202306151631.3uZmHI1c-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3b90b09af5be42491a8a74a549318cfa265b3029
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3b90b09af5be42491a8a74a549318cfa265b3029
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

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/202306151631.3uZmHI1c-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

riscv64-linux-ld: section .data LMA [0000000000261000,00000000007d98cf] overlaps section .text LMA [00000000000a7a50,000000000197e81f]
>> riscv64-linux-ld: section .init.pi.text LMA [000000000197e820,0000000001981733] overlaps section .data..percpu LMA [0000000001951000,0000000001b219d7]
>> riscv64-linux-ld: section .init.pi.rodata.str1.8 VMA [ffffffff821f3ed0,ffffffff821f3f3a] overlaps section .data VMA [ffffffff82000000,ffffffff825788cf]

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