Signed-off-by: Andrew Morton --- arch/x86_64/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff -puN arch/x86_64/Makefile~x86_64-mm-less-stack-alignment arch/x86_64/Makefile --- a/arch/x86_64/Makefile~x86_64-mm-less-stack-alignment +++ a/arch/x86_64/Makefile @@ -58,6 +58,8 @@ cflags-y += $(call cc-option,-mno-sse -m # newer gccs do it by default cflags-y += -maccumulate-outgoing-args +CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3) + # do binutils support CFI? cflags-y += $(call as-instr,.cfi_startproc\n.cfi_rel_offset rsp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) KBUILD_AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_rel_offset rsp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) _