diff options
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -500,6 +500,9 @@ RETPOLINE_CFLAGS_CLANG := -mretpoline-external-thunk | |||
| 500 | RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG))) | 500 | RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG))) |
| 501 | export RETPOLINE_CFLAGS | 501 | export RETPOLINE_CFLAGS |
| 502 | 502 | ||
| 503 | KBUILD_CFLAGS += $(call cc-option,-fno-PIE) | ||
| 504 | KBUILD_AFLAGS += $(call cc-option,-fno-PIE) | ||
| 505 | |||
| 503 | # check for 'asm goto' | 506 | # check for 'asm goto' |
| 504 | ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) | 507 | ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) |
| 505 | CC_HAVE_ASM_GOTO := 1 | 508 | CC_HAVE_ASM_GOTO := 1 |
| @@ -621,8 +624,6 @@ endif # $(dot-config) | |||
| 621 | # Defaults to vmlinux, but the arch makefile usually adds further targets | 624 | # Defaults to vmlinux, but the arch makefile usually adds further targets |
| 622 | all: vmlinux | 625 | all: vmlinux |
| 623 | 626 | ||
| 624 | KBUILD_CFLAGS += $(call cc-option,-fno-PIE) | ||
| 625 | KBUILD_AFLAGS += $(call cc-option,-fno-PIE) | ||
| 626 | CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \ | 627 | CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \ |
| 627 | $(call cc-option,-fno-tree-loop-im) \ | 628 | $(call cc-option,-fno-tree-loop-im) \ |
| 628 | $(call cc-disable-warning,maybe-uninitialized,) | 629 | $(call cc-disable-warning,maybe-uninitialized,) |
