riscv64-linux-ld: section .data LMA [0000000000800000,0000000000a1dc4f] overlaps section .rodata LMA [00000000007b1740,0000000000d6f8f4]

From: kernel test robot
Date: Fri May 07 2021 - 20:45:09 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1ad77a05cfaed42cba301368350817333ac69b6a
commit: 44c922572952d89a1ed15764f2b373ba62692865 RISC-V: enable XIP
date: 11 days ago
config: riscv-randconfig-c023-20210507 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=44c922572952d89a1ed15764f2b373ba62692865
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 44c922572952d89a1ed15764f2b373ba62692865
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=riscv

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> riscv64-linux-ld: section .data LMA [0000000000800000,0000000000a1dc4f] overlaps section .rodata LMA [00000000007b1740,0000000000d6f8f4]
>> riscv64-linux-ld: section .alternative VMA [ffffffff80d6f8f5,ffffffff80d6f93c] overlaps section .bss VMA [ffffffff80aa7000,ffffffff8161850f]
riscv64-linux-ld: arch/riscv/errata/alternative.o: in function `.L3':
alternative.c:(.init.text+0x78): undefined reference to `__alt_end'
riscv64-linux-ld: alternative.c:(.init.text+0x7c): undefined reference to `__alt_start'
>> riscv64-linux-ld: alternative.c:(.init.text+0x80): undefined reference to `__alt_end'
riscv64-linux-ld: alternative.c:(.init.text+0x84): undefined reference to `__alt_start'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip