s390/boot: add support for CONFIG_LD_ORPHAN_WARN
authorNathan Chancellor <nathan@kernel.org>
Thu, 8 Feb 2024 00:14:53 +0000 (17:14 -0700)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 14 Feb 2024 12:50:52 +0000 (13:50 +0100)
commit2151fd9a6d4ff8732a32f9ef2498fb7b95a0da29
tree1cab0e98c44a2c2ff7c9b06571b635b112bb7f19
parent340750c13c3af2fc8cc4f993823a0b82b8a22845
s390/boot: add support for CONFIG_LD_ORPHAN_WARN

arch/s390/boot/vmlinux uses a different linker script and build rules
than the main vmlinux, so the '--orphan-handling' flag is not applied to
it. Add support for '--orphan-handling' so that all sections are
properly described in the linker script, which helps eliminate bugs
between linker implementations having different orphan section
heuristics.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Justin Stitt <justinstitt@google.com>
Link: https://lore.kernel.org/r/20240207-s390-lld-and-orphan-warn-v1-1-8a665b3346ab@kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/boot/Makefile