Re: ld.lld: error: section .bss load address range overlaps with .init.pi.text

From: Alexandre Ghiti
Date: Mon Jul 10 2023 - 03:05:14 EST


On Mon, Jul 10, 2023 at 12:23 AM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
> commit: 3b90b09af5be42491a8a74a549318cfa265b3029 riscv: Fix orphan section warnings caused by kernel/pi
> date: 9 weeks ago
> config: riscv-randconfig-r022-20230710 (https://download.01.org/0day-ci/archive/20230710/202307100638.uoomUZol-lkp@xxxxxxxxx/config)
> compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
> reproduce: (https://download.01.org/0day-ci/archive/20230710/202307100638.uoomUZol-lkp@xxxxxxxxx/reproduce)
>
> 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/202307100638.uoomUZol-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> >> ld.lld: error: section .bss load address range overlaps with .init.pi.text
> >>> .bss range is [0xDD5000, 0x1EC438F]
> >>> .init.pi.text range is [0x1DBC350, 0x1DBF39B]
> --
> >> ld.lld: error: section .rodata load address range overlaps with .init.pi.bss
> >>> .rodata range is [0x1DBF400, 0x2888177]
> >>> .init.pi.bss range is [0x1EC4390, 0x1EC478F]
>

XIP_KERNEL=y so nothing to do here.

Thanks,

Alex

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