|
@@ -399,11 +399,12 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
|
-fno-strict-aliasing -fno-common \
|
|
|
-Werror-implicit-function-declaration \
|
|
|
-Wno-format-security \
|
|
|
- -std=gnu89
|
|
|
+ -std=gnu89 $(call cc-option,-fno-PIE)
|
|
|
+
|
|
|
|
|
|
KBUILD_AFLAGS_KERNEL :=
|
|
|
KBUILD_CFLAGS_KERNEL :=
|
|
|
-KBUILD_AFLAGS := -D__ASSEMBLY__
|
|
|
+KBUILD_AFLAGS := -D__ASSEMBLY__ $(call cc-option,-fno-PIE)
|
|
|
KBUILD_AFLAGS_MODULE := -DMODULE
|
|
|
KBUILD_CFLAGS_MODULE := -DMODULE
|
|
|
KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
|
|
@@ -622,8 +623,6 @@ include arch/$(SRCARCH)/Makefile
|
|
|
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,)
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,)
|
|
|
-KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
|
|
|
-KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
|
|
|
|
|
|
ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
|
|
|
KBUILD_CFLAGS += $(call cc-option,-ffunction-sections,)
|