@@ -229,25 +229,26 @@ ifdef CONFIG_OBJTOOL
229
229
230
230
objtool := $(objtree)/tools/objtool/objtool
231
231
232
- objtool_args = \
233
- $(if $(CONFIG_HAVE_JUMP_LABEL_HACK), --hacks=jump_label) \
234
- $(if $(CONFIG_HAVE_NOINSTR_HACK), --hacks=noinstr) \
235
- $(if $(CONFIG_X86_KERNEL_IBT), --ibt) \
236
- $(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount) \
237
- $(if $(CONFIG_UNWINDER_ORC), --orc) \
238
- $(if $(CONFIG_RETPOLINE), --retpoline) \
239
- $(if $(CONFIG_RETHUNK), --rethunk) \
240
- $(if $(CONFIG_SLS), --sls) \
241
- $(if $(CONFIG_STACK_VALIDATION), --stackval) \
242
- $(if $(CONFIG_HAVE_STATIC_CALL_INLINE), --static-call) \
243
- $(if $(CONFIG_HAVE_UACCESS_VALIDATION), --uaccess) \
232
+ objtool-args-$(CONFIG_HAVE_JUMP_LABEL_HACK) += --hacks=jump_label
233
+ objtool-args-$(CONFIG_HAVE_NOINSTR_HACK) += --hacks=noinstr
234
+ objtool-args-$(CONFIG_X86_KERNEL_IBT) += --ibt
235
+ objtool-args-$(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL) += --mcount
236
+ objtool-args-$(CONFIG_UNWINDER_ORC) += --orc
237
+ objtool-args-$(CONFIG_RETPOLINE) += --retpoline
238
+ objtool-args-$(CONFIG_RETHUNK) += --rethunk
239
+ objtool-args-$(CONFIG_SLS) += --sls
240
+ objtool-args-$(CONFIG_STACK_VALIDATION) += --stackval
241
+ objtool-args-$(CONFIG_HAVE_STATIC_CALL_INLINE) += --static-call
242
+ objtool-args-$(CONFIG_HAVE_UACCESS_VALIDATION) += --uaccess
243
+ objtool-args-$(CONFIG_GCOV_KERNEL) += --no-unreachable
244
+
245
+ objtool-args = $(objtool-args-y) \
244
246
$(if $(delay-objtool), --link) \
245
- $(if $(part-of-module), --module) \
246
- $(if $(CONFIG_GCOV_KERNEL), --no-unreachable)
247
+ $(if $(part-of-module), --module)
247
248
248
249
delay-objtool := $(or $(CONFIG_LTO_CLANG),$(CONFIG_X86_KERNEL_IBT))
249
250
250
- cmd_objtool = $(if $(objtool-enabled), ; $(objtool) $(objtool_args ) $@)
251
+ cmd_objtool = $(if $(objtool-enabled), ; $(objtool) $(objtool-args ) $@)
251
252
cmd_gen_objtooldep = $(if $(objtool-enabled), { echo ; echo '$@: $$(wildcard $(objtool))' ; } >> $(dot-target).cmd)
252
253
253
254
endif # CONFIG_OBJTOOL
0 commit comments