X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=arch%2Fx86%2FMakefile;fp=arch%2Fx86%2FMakefile;h=682e9c210baacb99b86817adbd45ebbd17a30955;hb=484d90eec884d814b005c9736bcf3fd018acba65;hp=b0c5276861ec8cc3b5713b6f83335746f812edde;hpb=c6fd893da927c6cefb2ece22402765379921a834;p=karo-tx-linux.git diff --git a/arch/x86/Makefile b/arch/x86/Makefile index b0c5276861ec..682e9c210baa 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -27,6 +27,10 @@ ifeq ($(CONFIG_X86_32),y) KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return + # Never want PIC in a 32-bit kernel, prevent breakage with GCC built + # with nonstandard options + KBUILD_CFLAGS += -fno-pic + # prevent gcc from keeping the stack 16 byte aligned KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2)