x86/boot/compressed: Remove, discard, or assert for unwanted sections
authorKees Cook <keescook@chromium.org>
Fri, 21 Aug 2020 19:43:08 +0000 (12:43 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Sep 2020 08:03:18 +0000 (10:03 +0200)
commitd1c0272bc1c068f8c2cb3d1b395173602b0df6e7
tree70f65335caa4a4998231baea05cdc514d8389edd
parent7cf891a40057f851af74e68bacb01b90bd775b5d
x86/boot/compressed: Remove, discard, or assert for unwanted sections

In preparation for warning on orphan sections, stop the linker from
generating the .eh_frame* 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).

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200821194310.3089815-28-keescook@chromium.org
arch/x86/boot/compressed/Makefile
arch/x86/boot/compressed/vmlinux.lds.S