]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Split noinstr validation from --vmlinux
authorSami Tolvanen <samitolvanen@google.com>
Wed, 30 Sep 2020 21:36:59 +0000 (14:36 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 23 Feb 2021 20:46:57 +0000 (12:46 -0800)
commit3b585a0d633e822843fef55f5961acbcf5512229
tree41ab9f3adf71fb17c56e6975214088e4631bafde
parent5065aee240703204c47dd516aef8b7190340a046
objtool: Split noinstr validation from --vmlinux

This change adds a --noinstr flag to objtool to allow us to specify
that we're processing vmlinux.o without also enabling noinstr
validation. This is needed to avoid false positives with LTO when we
run objtool on vmlinux.o without CONFIG_DEBUG_ENTRY.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
scripts/link-vmlinux.sh
tools/objtool/builtin-check.c
tools/objtool/builtin.h
tools/objtool/check.c