Tell gcc to only align stack to 8 bytes Don't need 16 byte alignment because kernel doesn't use SSE2 Signed-off-by: Andi Kleen --- arch/x86_64/Makefile | 1 + 1 file changed, 1 insertion(+) Index: linux/arch/x86_64/Makefile =================================================================== --- linux.orig/arch/x86_64/Makefile +++ linux/arch/x86_64/Makefile @@ -55,6 +55,7 @@ cflags-y += $(call cc-option,-mno-sse -m # this works around some issues with generating unwind tables in older gccs # newer gccs do it by default cflags-y += -maccumulate-outgoing-args +cflags-y += -mpreferred-stack-boundary=4 # do binutils support CFI? cflags-y += $(call as-instr,.cfi_startproc\n.cfi_endproc,-DCONFIG_AS_CFI=1,)