]> 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)
commitf509d0b6e8631b489dbe788b5df18d9771cd7172
tree41ab9f3adf71fb17c56e6975214088e4631bafde
parent04e2f6b9ee862bbfb71e872fe227e2573c0f3695
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