]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/build: Enforce an empty .got.plt section
authorKees Cook <keescook@chromium.org>
Fri, 21 Aug 2020 19:43:04 +0000 (12:43 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Sep 2020 08:03:18 +0000 (10:03 +0200)
commit815d680771ae09080d2da83dac2647c08cdf99ce
tree10cba521880a8bf6442aa3faad6c25813dfb3d71
parenta850958c072404f75dd41782cb4ff34b8625b47d
x86/build: Enforce an empty .got.plt section

The .got.plt section should always be zero (or filled only with the
linker-generated lazy dispatch entry). Enforce this with an assert and
mark the section as INFO. This is more sensitive than just blindly
discarding the section.

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