diff options
author | Nathan Chancellor <nathan@kernel.org> | 2024-02-07 17:15:00 -0700 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-14 13:50:53 +0100 |
commit | 6a4d37c886c1324c10452c06192bf6d7ebb7c8af (patch) | |
tree | 1a9931900bf2b2b394176cf4d150cbf02c966e6e /arch/s390/boot | |
parent | ba6c26af1ee72f1812cbdac899416e7e1afa1fdb (diff) | |
download | linux-stable-6a4d37c886c1324c10452c06192bf6d7ebb7c8af.tar.gz linux-stable-6a4d37c886c1324c10452c06192bf6d7ebb7c8af.tar.bz2 linux-stable-6a4d37c886c1324c10452c06192bf6d7ebb7c8af.zip |
s390/boot: vmlinux.lds.S: handle ELF required sections
When building with CONFIG_LD_ORPHAN_WARN after selecting
CONFIG_ARCH_HAS_LD_ORPHAN_WARN, there is a warning around the '.comment'
section for each file in arch/s390/boot
s390-linux-ld: warning: orphan section `.comment' from `arch/s390/boot/als.o' being placed in section `.comment'
s390-linux-ld: warning: orphan section `.comment' from `arch/s390/boot/startup.o' being placed in section `.comment'
s390-linux-ld: warning: orphan section `.comment' from `arch/s390/boot/physmem_info.o' being placed in section `.comment'
include/asm-generic/vmlinux.lds.h has a macro for required ELF sections
not related to debugging named ELF_DETAILS, use it to clear up the
warnings.
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-8-8a665b3346ab@kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot')
-rw-r--r-- | arch/s390/boot/vmlinux.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/boot/vmlinux.lds.S b/arch/s390/boot/vmlinux.lds.S index 722025dec0ee..fb599e13dfe9 100644 --- a/arch/s390/boot/vmlinux.lds.S +++ b/arch/s390/boot/vmlinux.lds.S @@ -123,6 +123,7 @@ SECTIONS _end = .; DWARF_DEBUG + ELF_DETAILS /* * Sections that should stay zero sized, which is safer to |