mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
c0f98ea0e7
When building with CONFIG_LD_ORPHAN_WARN after selecting CONFIG_ARCH_HAS_LD_ORPHAN_WARN, there are several series of warnings from the various discardable sections that the kernel adds for build purposes that are not needed at runtime: s390-linux-ld: warning: orphan section `.export_symbol' from `arch/s390/boot/decompressor.o' being placed in section `.export_symbol' s390-linux-ld: warning: orphan section `.discard.addressable' from `arch/s390/boot/decompressor.o' being placed in section `.discard.addressable' s390-linux-ld: warning: orphan section `.modinfo' from `arch/s390/boot/decompressor.o' being placed in section `.modinfo' include/asm-generic/vmlinux.lds.h has a macro for easily discarding these sections across the kernel named COMMON_DISCARDS, 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-9-8a665b3346ab@kernel.org Signed-off-by: Heiko Carstens <hca@linux.ibm.com> |
||
---|---|---|
.. | ||
.gitignore | ||
als.c | ||
boot.h | ||
clz_ctz.c | ||
cmdline.c | ||
ctype.c | ||
decompressor.c | ||
decompressor.h | ||
ebcdic.c | ||
head_kdump.S | ||
head.S | ||
install.sh | ||
ipl_data.c | ||
ipl_parm.c | ||
ipl_report.c | ||
ipl_vmparm.c | ||
kaslr.c | ||
machine_kexec_reloc.c | ||
Makefile | ||
mem.S | ||
pgm_check_info.c | ||
physmem_info.c | ||
sclp_early_core.c | ||
startup.c | ||
string.c | ||
uv.c | ||
uv.h | ||
version.c | ||
vmem.c | ||
vmlinux.lds.S |