summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-08-21 12:42:59 -0700
committerIngo Molnar <mingo@kernel.org>2020-09-01 10:03:18 +0200
commit0c918e753f8c03b0308a635c0721a8c24d738d4a (patch)
tree640d34b4abcd9cb18c34ce4b3d25462d1ef7a5a2 /arch/arm/kernel/vmlinux.lds.S
parent512dd2eebe5585893412e0c8bec8dbfe2dead6c8 (diff)
downloadlinux-0c918e753f8c03b0308a635c0721a8c24d738d4a.tar.gz
linux-0c918e753f8c03b0308a635c0721a8c24d738d4a.tar.bz2
linux-0c918e753f8c03b0308a635c0721a8c24d738d4a.zip
arm/build: Assert for unwanted sections
In preparation for warning on orphan sections, enforce expected-to-be-zero-sized sections (since discarding them might hide problems with them suddenly gaining unexpected entries). Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Russell King <linux@armlinux.org.uk> Link: https://lore.kernel.org/r/20200821194310.3089815-19-keescook@chromium.org
Diffstat (limited to 'arch/arm/kernel/vmlinux.lds.S')
-rw-r--r--arch/arm/kernel/vmlinux.lds.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
index dc672fe35de3..5f4922e858d0 100644
--- a/arch/arm/kernel/vmlinux.lds.S
+++ b/arch/arm/kernel/vmlinux.lds.S
@@ -151,6 +151,8 @@ SECTIONS
STABS_DEBUG
DWARF_DEBUG
ARM_DETAILS
+
+ ARM_ASSERTS
}
#ifdef CONFIG_STRICT_KERNEL_RWX