x86: Add straight-line-speculation mitigation
[platform/kernel/linux-rpi.git] / scripts / Makefile.build
index 17508c0..2b988b6 100644 (file)
@@ -232,7 +232,8 @@ objtool_args =                                                              \
        $(if $(CONFIG_GCOV_KERNEL)$(CONFIG_LTO_CLANG), --no-unreachable)\
        $(if $(CONFIG_RETPOLINE), --retpoline)                          \
        $(if $(CONFIG_X86_SMAP), --uaccess)                             \
-       $(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount)
+       $(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount)             \
+       $(if $(CONFIG_SLS), --sls)
 
 ifndef CONFIG_LTO_CLANG