x86: Add straight-line-speculation mitigation
[platform/kernel/linux-rpi.git] / scripts / link-vmlinux.sh
index d74cee5..59a3df8 100755 (executable)
@@ -139,6 +139,9 @@ objtool_link()
                if [ -n "${CONFIG_X86_SMAP}" ]; then
                        objtoolopt="${objtoolopt} --uaccess"
                fi
+               if [ -n "${CONFIG_SLS}" ]; then
+                       objtoolopt="${objtoolopt} --sls"
+               fi
                info OBJTOOL ${1}
                tools/objtool/objtool ${objtoolcmd} ${objtoolopt} ${1}
        fi