summaryrefslogtreecommitdiff
path: root/arch/s390/boot/vmlinux.lds.S
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2024-02-08 03:14:56 +0300
committerHeiko Carstens <hca@linux.ibm.com>2024-02-14 15:50:52 +0300
commita691c8a6efe0220f244f7bb59a3af39383b57d2c (patch)
tree27e4b1b73c3f55ee2453123f1d71ffa523cb19aa /arch/s390/boot/vmlinux.lds.S
parent30226853d6ecd274ec35b9d7b8dcdfc1e0981f05 (diff)
downloadlinux-a691c8a6efe0220f244f7bb59a3af39383b57d2c.tar.xz
s390: vmlinux.lds.S: explicitly keep various sections
When building with CONFIG_LD_ORPHAN_WARN after selecting CONFIG_ARCH_HAS_LD_ORPHAN_WARN, there are some warnings around certain ELF sections: s390-linux-ld: warning: orphan section `.dynstr' from `arch/s390/kernel/head64.o' being placed in section `.dynstr' s390-linux-ld: warning: orphan section `.dynamic' from `arch/s390/kernel/head64.o' being placed in section `.dynamic' s390-linux-ld: warning: orphan section `.hash' from `arch/s390/kernel/head64.o' being placed in section `.hash' s390-linux-ld: warning: orphan section `.gnu.hash' from `arch/s390/kernel/head64.o' being placed in section `.gnu.hash' Explicitly keep those sections like other architectures when CONFIG_RELOCATABLE is enabled, which is always true for s390. [hca@linux.ibm.com: keep sections instead of discarding] Signed-off-by: Nathan Chancellor <nathan@kernel.org> Link: https://lore.kernel.org/r/20240207-s390-lld-and-orphan-warn-v1-4-8a665b3346ab@kernel.org Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot/vmlinux.lds.S')
0 files changed, 0 insertions, 0 deletions