History

objtool: Add CONFIG_OBJTOOL

Now that stack validation is an optional feature of objtool, add CONFIG_OBJTOOL and replace most usages of CONFIG_STACK_VALIDATION with it. CONFIG_STACK_VALIDATION can now be considered to be frame-pointer specific. CONFIG_UNWINDER_ORC is already inherently valid for live patching, so no need to "validate" it.

Josh Poimboeuf committed 4 years ago

Commit 03f16cd1 parent c2bdd6117 files · +73 −57Browse files

Showing the changes to tools/include/linux (1 of 17 files). Show all

Unified · Split

tools/include/linux/objtool.h+3−3
@@ -38,7 +38,7 @@ struct unwind_hint { · 37 unmodified lines
38#define UNWIND_HINT_TYPE_REGS_PARTIAL 238#define UNWIND_HINT_TYPE_REGS_PARTIAL 2
39#define UNWIND_HINT_TYPE_FUNC 339#define UNWIND_HINT_TYPE_FUNC 3
40 40
41#ifdef CONFIG_STACK_VALIDATION41#ifdef CONFIG_OBJTOOL
42 42
43#ifndef __ASSEMBLY__43#ifndef __ASSEMBLY__
44 44
@@ -157,7 +157,7 @@ struct unwind_hint { · 112 unmodified lines
157 157
158#endif /* __ASSEMBLY__ */158#endif /* __ASSEMBLY__ */
159 159
160#else /* !CONFIG_STACK_VALIDATION */160#else /* !CONFIG_OBJTOOL */
161 161
162#ifndef __ASSEMBLY__162#ifndef __ASSEMBLY__
163 163
@@ -179,6 +179,6 @@ struct unwind_hint { · 15 unmodified lines
179.endm179.endm
180#endif180#endif
181 181
182#endif /* CONFIG_STACK_VALIDATION */182#endif /* CONFIG_OBJTOOL */
183 183
184#endif /* _LINUX_OBJTOOL_H */184#endif /* _LINUX_OBJTOOL_H */