]> 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)
commit41425ebe20245c99b44d6ba0f017be9bfc28414f
tree41ab9f3adf71fb17c56e6975214088e4631bafde
parent6dafca97803309c3cb5148d449bfa711e41ddef2
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