|
@@ -489,6 +489,11 @@ KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
|
|
KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
|
|
KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register
|
|
|
|
+RETPOLINE_CFLAGS_CLANG := -mretpoline-external-thunk
|
|
|
|
+RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG)))
|
|
|
|
+export RETPOLINE_CFLAGS
|
|
|
|
+
|
|
ifeq ($(config-targets),1)
|
|
ifeq ($(config-targets),1)
|
|
# ===========================================================================
|
|
# ===========================================================================
|
|
# *config targets only - make sure prerequisites are updated, and descend
|
|
# *config targets only - make sure prerequisites are updated, and descend
|