]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/build: Assert for unwanted sections
authorKees Cook <keescook@chromium.org>
Fri, 21 Aug 2020 19:42:54 +0000 (12:42 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Sep 2020 07:50:37 +0000 (09:50 +0200)
commit86b52184d842cb698d228c321e0cae22c1e68302
tree911f7f3f41a51038e4a9ab95cfecfe304680e550
parentd8189a653882ec95f13dead8658ab66506f322f0
arm64/build: Assert for unwanted sections

In preparation for warning on orphan sections, discard
unwanted non-zero-sized generated sections, and enforce other
expected-to-be-zero-sized sections (since discarding them might hide
problems with them suddenly gaining unexpected entries).

Suggested-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200821194310.3089815-14-keescook@chromium.org
arch/arm64/kernel/vmlinux.lds.S