diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2020-09-30 14:36:59 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2021-02-23 12:46:57 -0800 |
commit | 41425ebe20245c99b44d6ba0f017be9bfc28414f (patch) | |
tree | 41ab9f3adf71fb17c56e6975214088e4631bafde /scripts/link-vmlinux.sh | |
parent | 6dafca97803309c3cb5148d449bfa711e41ddef2 (diff) | |
download | linux-41425ebe20245c99b44d6ba0f017be9bfc28414f.tar.gz linux-41425ebe20245c99b44d6ba0f017be9bfc28414f.tar.bz2 linux-41425ebe20245c99b44d6ba0f017be9bfc28414f.zip |
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>
Diffstat (limited to 'scripts/link-vmlinux.sh')
-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 423a4106f0dd..18aed761f9c0 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 --vmlinux" + objtoolopt="check --vmlinux --noinstr" if [ -z "${CONFIG_FRAME_POINTER}" ]; then objtoolopt="${objtoolopt} --no-fp" fi |