]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Avoid orphan input sections
authorArd Biesheuvel <ardb@kernel.org>
Wed, 24 Aug 2022 15:31:10 +0000 (17:31 +0200)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 3 Sep 2022 10:01:27 +0000 (18:01 +0800)
commitbafcd2c3739bb28ce628c7696c692f2b13322e63
treecc075f01d32421e4d0d7d1ae9601b893f2df7981
parente09e5912637631f640a7238acac671d0c8a03dad
LoongArch: Avoid orphan input sections

Ensure that all input sections are listed explicitly in the linker
script, and issue a warning otherwise. This ensures that the binary
image matches the PE/COFF and other image metadata exactly, which is
important for things like code signing.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kconfig
arch/loongarch/kernel/vmlinux.lds.S