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)
commit1429cfde90dc9c84789884d58ecd3bc2cad3dc9f
treecc075f01d32421e4d0d7d1ae9601b893f2df7981
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
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