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
3838 #define UNWIND_HINT_TYPE_REGS_PARTIAL 2
3939 #define UNWIND_HINT_TYPE_FUNC 3
4040
41−#ifdef CONFIG_STACK_VALIDATION
41+#ifdef CONFIG_OBJTOOL
4242
4343 #ifndef __ASSEMBLY__
4444
@@ -157,7 +157,7 @@ struct unwind_hint { · 112 unmodified lines
157157
158158 #endif /* __ASSEMBLY__ */
159159
160−#else /* !CONFIG_STACK_VALIDATION */
160+#else /* !CONFIG_OBJTOOL */
161161
162162 #ifndef __ASSEMBLY__
163163
@@ -179,6 +179,6 @@ struct unwind_hint { · 15 unmodified lines
179179 .endm
180180 #endif
181181
182−#endif /* CONFIG_STACK_VALIDATION */
182+#endif /* CONFIG_OBJTOOL */
183183
184184 #endif /* _LINUX_OBJTOOL_H */