diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2020-07-17 22:04:27 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2021-02-23 23:46:57 +0300 |
commit | 0e731dbc18241d68318e0a7d2c2c0087c9073fb9 (patch) | |
tree | f84a8f54bed013cb49dc370484745143abc72133 /scripts | |
parent | 18a14575ae31c5a97a5e87e961932a5016d369be (diff) | |
download | linux-0e731dbc18241d68318e0a7d2c2c0087c9073fb9.tar.xz |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/link-vmlinux.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index c5919d5a0b4f..423a4106f0dd 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -106,7 +106,7 @@ objtool_link() local objtoolopt; if [ -n "${CONFIG_VMLINUX_VALIDATION}" ]; then - objtoolopt="check" + objtoolopt="check --vmlinux" if [ -z "${CONFIG_FRAME_POINTER}" ]; then objtoolopt="${objtoolopt} --no-fp" fi |