objtool: Don't autodetect vmlinux.o
authorSami Tolvanen <samitolvanen@google.com>
Fri, 17 Jul 2020 19:04:27 +0000 (12:04 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 23 Feb 2021 20:46:57 +0000 (12:46 -0800)
commit0e731dbc18241d68318e0a7d2c2c0087c9073fb9
treef84a8f54bed013cb49dc370484745143abc72133
parent18a14575ae31c5a97a5e87e961932a5016d369be
objtool: Don't autodetect vmlinux.o

With LTO, we run objtool on vmlinux.o, but don't want noinstr
validation. This change requires --vmlinux to be passed to objtool
explicitly.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
scripts/link-vmlinux.sh
tools/objtool/builtin-check.c