forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
[ARCH] s390This bug impacts ARCH=s390This bug impacts ARCH=s390[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[FIXED][LINUX] 6.9This bug was fixed in Linux 6.9This bug was fixed in Linux 6.9[TOOL] lldThe issue is relevant to LLD linkerThe issue is relevant to LLD linker
Description
When attempting to build ARCH=s390 defconfig
with ld.lld
(available after llvm/llvm-project@fe3406e) after applying the patches for #1991, #1992, and #1993, there are a series of errors around overlapping virtual address ranges:
$ make -skj"$(nproc)" ARCH=s390 LLVM=1 OBJCOPY=s390x-linux-gnu-objcopy OBJDUMP=s390x-linux-gnu-objdump mrproper defconfig all
...
ld.lld: error: section .ipldata virtual address range overlaps with .head.text
>>> .ipldata range is [0x68, 0x267]
>>> .head.text range is [0x200, 0x102D9]
ld.lld: error: section .head.text virtual address range overlaps with .discard.addressable
>>> .head.text range is [0x200, 0x102D9]
>>> .discard.addressable range is [0x268, 0x337]
ld.lld: error: section .init.text virtual address range overlaps with .parmarea
>>> .init.text range is [0x102DA, 0x105B9]
>>> .parmarea range is [0x10400, 0x1147F]
ld.lld: error: section .ipldata load address range overlaps with .head.text
>>> .ipldata range is [0x68, 0x267]
>>> .head.text range is [0x200, 0x102D9]
ld.lld: error: section .head.text load address range overlaps with .discard.addressable
>>> .head.text range is [0x200, 0x102D9]
>>> .discard.addressable range is [0x268, 0x337]
ld.lld: error: section .init.text load address range overlaps with .parmarea
>>> .init.text range is [0x102DA, 0x105B9]
>>> .parmarea range is [0x10400, 0x1147F]
This is due to orphan section placement differences between GNU ld and LLD. Patch series to address this fully submitted and accepted: https://git.kernel.org/s390/l/acb7c202baa76235ed478043809366e7de1741c2
Metadata
Metadata
Assignees
Labels
[ARCH] s390This bug impacts ARCH=s390This bug impacts ARCH=s390[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[FIXED][LINUX] 6.9This bug was fixed in Linux 6.9This bug was fixed in Linux 6.9[TOOL] lldThe issue is relevant to LLD linkerThe issue is relevant to LLD linker