|
@@ -86,13 +86,15 @@ ifdef CONFIG_EXPOLINE
|
|
|
endif
|
|
|
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
|
|
-# make use of hotpatch feature if the compiler supports it
|
|
|
-cc_hotpatch := -mhotpatch=0,3
|
|
|
-ifeq ($(call cc-option-yn,$(cc_hotpatch)),y)
|
|
|
-CC_FLAGS_FTRACE := $(cc_hotpatch)
|
|
|
-KBUILD_AFLAGS += -DCC_USING_HOTPATCH
|
|
|
-KBUILD_CFLAGS += -DCC_USING_HOTPATCH
|
|
|
-endif
|
|
|
+ ifeq ($(call cc-option-yn,-mfentry -mnop-mcount),n)
|
|
|
+ # make use of hotpatch feature if the compiler supports it
|
|
|
+ cc_hotpatch := -mhotpatch=0,3
|
|
|
+ ifeq ($(call cc-option-yn,$(cc_hotpatch)),y)
|
|
|
+ CC_FLAGS_FTRACE := $(cc_hotpatch)
|
|
|
+ KBUILD_AFLAGS += -DCC_USING_HOTPATCH
|
|
|
+ KBUILD_CFLAGS += -DCC_USING_HOTPATCH
|
|
|
+ endif
|
|
|
+ endif
|
|
|
endif
|
|
|
|
|
|
# Test CFI features of binutils
|