Re: [PATCH 00/11] s390: Support linking with ld.lld

Heiko Carstens
2024-02-14T13:43:39Z

On Wed, Feb 07, 2024 at 05:14:52PM -0700, Nathan Chancellor wrote:
> Hi all,
>
> This series allows the s390 kernel to be linked with ld.lld (support for
> s390 is under review at [1]). This implicitly depends on [2], which was
> created and sent before it was realized that this series was necessary.
...
> Nathan Chancellor (11):
> s390: boot: Add support for CONFIG_LD_ORPHAN_WARN
> s390: vmlinux.lds.S: Handle '.data.rel' sections explicitly
> s390: vmlinux.lds.S: Explicitly handle '.got' and '.plt' sections
> s390: vmlinux.lds.S: Discard unnecessary sections
> s390/boot: vmlinux.lds.S: Handle '.init.text'
> s390/boot: vmlinux.lds.S: Handle '.rela' sections
> s390/boot: vmlinux.lds.S: Handle DWARF debug sections
> s390/boot: vmlinux.lds.S: Handle ELF required sections
> s390/boot: vmlinux.lds.S: Handle commonly discarded sections
> s390: Select CONFIG_ARCH_WANT_LD_ORPHAN_WARN
> s390: Link vmlinux with '-z notext'
>
> arch/s390/Kconfig | 1 +
> arch/s390/Makefile | 2 +-
> arch/s390/boot/Makefile | 5 +++--
> arch/s390/boot/vmlinux.lds.S | 28 ++++++++++++++++++++++++++++
> arch/s390/kernel/vmlinux.lds.S | 28 +++++++++++++++++++++++++++-
> 5 files changed, 60 insertions(+), 4 deletions(-)

Now available at:
https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git/log/?h=features

And should be in linux-next soon.

Thanks a lot! :)