|
@@ -500,6 +500,9 @@ RETPOLINE_CFLAGS_CLANG := -mretpoline-external-thunk
|
|
RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG)))
|
|
RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG)))
|
|
export RETPOLINE_CFLAGS
|
|
export RETPOLINE_CFLAGS
|
|
|
|
|
|
|
|
+KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
|
|
|
|
+KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
|
|
|
|
+
|
|
# check for 'asm goto'
|
|
# check for 'asm goto'
|
|
ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
|
|
ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
|
|
CC_HAVE_ASM_GOTO := 1
|
|
CC_HAVE_ASM_GOTO := 1
|
|
@@ -621,8 +624,6 @@ endif # $(dot-config)
|
|
# Defaults to vmlinux, but the arch makefile usually adds further targets
|
|
# Defaults to vmlinux, but the arch makefile usually adds further targets
|
|
all: vmlinux
|
|
all: vmlinux
|
|
|
|
|
|
-KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
|
|
|
|
-KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
|
|
|
|
CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \
|
|
CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \
|
|
$(call cc-option,-fno-tree-loop-im) \
|
|
$(call cc-option,-fno-tree-loop-im) \
|
|
$(call cc-disable-warning,maybe-uninitialized,)
|
|
$(call cc-disable-warning,maybe-uninitialized,)
|