aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/objtool/include
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2023-06-05 09:12:21 -0700
committerJosh Poimboeuf <jpoimboe@kernel.org>2023-06-07 10:03:11 -0700
commit1e4b619185e83e54aca617cf5070c64a88fe936b (patch)
tree41fd2c6f5afb7ccc77947cd8f36228967658c48a /tools/objtool/include
parentx86/entry: Move thunk restore code into thunk functions (diff)
downloadwireguard-linux-1e4b619185e83e54aca617cf5070c64a88fe936b.tar.xz
wireguard-linux-1e4b619185e83e54aca617cf5070c64a88fe936b.zip
objtool: Allow stack operations in UNWIND_HINT_UNDEFINED regions
If the code specified UNWIND_HINT_UNDEFINED, skip the "undefined stack state" warning due to a stack operation. Just ignore the stack op and continue to propagate the undefined state. Link: https://lore.kernel.org/r/820c5b433f17c84e8761fb7465a8d319d706b1cf.1685981486.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/objtool/include')
-rw-r--r--tools/objtool/include/objtool/cfi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/objtool/include/objtool/cfi.h b/tools/objtool/include/objtool/cfi.h
index b1258e79a1b7..c8a6bec4f6b9 100644
--- a/tools/objtool/include/objtool/cfi.h
+++ b/tools/objtool/include/objtool/cfi.h
@@ -36,6 +36,7 @@ struct cfi_state {
bool drap;
bool signal;
bool end;
+ bool force_undefined;
};
#endif /* _OBJTOOL_CFI_H */