diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
| @@ -426,9 +426,9 @@ LINUXINCLUDE := \ | |||
| 426 | -I$(objtree)/include \ | 426 | -I$(objtree)/include \ |
| 427 | $(USERINCLUDE) | 427 | $(USERINCLUDE) |
| 428 | 428 | ||
| 429 | KBUILD_AFLAGS := -D__ASSEMBLY__ | 429 | KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE |
| 430 | KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ | 430 | KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ |
| 431 | -fno-strict-aliasing -fno-common -fshort-wchar \ | 431 | -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ |
| 432 | -Werror-implicit-function-declaration \ | 432 | -Werror-implicit-function-declaration \ |
| 433 | -Wno-format-security \ | 433 | -Wno-format-security \ |
| 434 | -std=gnu89 | 434 | -std=gnu89 |
| @@ -514,9 +514,6 @@ RETPOLINE_VDSO_CFLAGS := $(call cc-option,$(RETPOLINE_VDSO_CFLAGS_GCC),$(call cc | |||
| 514 | export RETPOLINE_CFLAGS | 514 | export RETPOLINE_CFLAGS |
| 515 | export RETPOLINE_VDSO_CFLAGS | 515 | export RETPOLINE_VDSO_CFLAGS |
| 516 | 516 | ||
| 517 | KBUILD_CFLAGS += $(call cc-option,-fno-PIE) | ||
| 518 | KBUILD_AFLAGS += $(call cc-option,-fno-PIE) | ||
| 519 | |||
| 520 | # check for 'asm goto' | 517 | # check for 'asm goto' |
| 521 | ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) | 518 | ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) |
| 522 | CC_HAVE_ASM_GOTO := 1 | 519 | CC_HAVE_ASM_GOTO := 1 |
