]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/asm: Avoid generating unused kprobe sections
authorKees Cook <keescook@chromium.org>
Fri, 21 Aug 2020 19:43:03 +0000 (12:43 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Sep 2020 08:03:18 +0000 (10:03 +0200)
commita850958c072404f75dd41782cb4ff34b8625b47d
tree674a8fa2b3d7f0ce869729f30ad8c5dde35797f0
parent7e8c4ed2638d08a1604c87b60ed7161bf92e6f86
x86/asm: Avoid generating unused kprobe sections

When !CONFIG_KPROBES, do not generate kprobe sections. This makes
sure there are no unexpected sections encountered by the linker scripts.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200821194310.3089815-23-keescook@chromium.org
arch/x86/include/asm/asm.h