riscv64-linux-ld: section .data LMA [0000000000800000,0000000000b2e737] overlaps section .text LMA [00000000000c7120,00000000010579cf]

From: kernel test robot
Date: Sat Jul 03 2021 - 16:04:22 EST


Hi Vitaly,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b820e167bf6f410ace479d8df5b15a574000e75
commit: 44c922572952d89a1ed15764f2b373ba62692865 RISC-V: enable XIP
date: 10 weeks ago
config: riscv-buildonly-randconfig-r002-20210704 (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 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,0000000000b2e737] overlaps section .text LMA [00000000000c7120,00000000010579cf]
>> riscv64-linux-ld: section .rodata VMA [ffffffff81057a00,ffffffff8128bf9c] overlaps section .bss VMA [ffffffff80d31000,ffffffff821720f7]

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for ERRATA_SIFIVE
Depends on RISCV_ERRATA_ALTERNATIVE
Selected by
- SOC_SIFIVE

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

Attachment: .config.gz
Description: application/gzip