summaryrefslogtreecommitdiff
path: root/arch/loongarch/Kconfig
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2022-08-24 18:31:10 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2022-09-03 13:01:27 +0300
commit1429cfde90dc9c84789884d58ecd3bc2cad3dc9f (patch)
treecc075f01d32421e4d0d7d1ae9601b893f2df7981 /arch/loongarch/Kconfig
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5 (diff)
downloadlinux-1429cfde90dc9c84789884d58ecd3bc2cad3dc9f.tar.xz
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>
Diffstat (limited to 'arch/loongarch/Kconfig')
-rw-r--r--arch/loongarch/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index 26aeb1408e56..3bc5b911ae1a 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -51,6 +51,7 @@ config LOONGARCH
select ARCH_USE_CMPXCHG_LOCKREF
select ARCH_USE_QUEUED_RWLOCKS
select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
+ select ARCH_WANT_LD_ORPHAN_WARN
select ARCH_WANTS_NO_INSTR
select BUILDTIME_TABLE_SORT
select COMMON_CLK