]> git.baikalelectronics.ru Git - kernel.git/commit
x86/build: Add asserts for unwanted sections
authorKees Cook <keescook@chromium.org>
Fri, 21 Aug 2020 19:43:05 +0000 (12:43 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Sep 2020 08:03:18 +0000 (10:03 +0200)
commitc7a9e5d88168ebe1779dd06dc5a2400b5e393e0b
treef2f2db99d32fe5706161949cdc1b567c6546b929
parent7ae645e930e7e5a5eea98825210313f2983d2e9e
x86/build: Add asserts for unwanted sections

In preparation for warning on orphan sections, enforce other
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>
Link: https://lore.kernel.org/r/20200821194310.3089815-25-keescook@chromium.org
arch/x86/kernel/vmlinux.lds.S