mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
x86: Use default stack boundary alignment
At present U-Boot x86 build is using -mpreferred-stack-boundary=2 which is 4 bytes stack boundary alignment. With 64-bit U-Boot, the minimal required stack boundary alignment is 16 bytes. If -mpreferred-stack-boundary is not specified, the default is 4 (16 bytes). Switch to use the default one. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6364a5d4bd
commit
9a95f51ffe
1 changed files with 1 additions and 2 deletions
|
@ -10,8 +10,7 @@ CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
|
||||||
PLATFORM_CPPFLAGS += -fno-strict-aliasing
|
PLATFORM_CPPFLAGS += -fno-strict-aliasing
|
||||||
PLATFORM_CPPFLAGS += -fomit-frame-pointer
|
PLATFORM_CPPFLAGS += -fomit-frame-pointer
|
||||||
PF_CPPFLAGS_X86 := $(call cc-option, -fno-toplevel-reorder, \
|
PF_CPPFLAGS_X86 := $(call cc-option, -fno-toplevel-reorder, \
|
||||||
$(call cc-option, -fno-unit-at-a-time)) \
|
$(call cc-option, -fno-unit-at-a-time))
|
||||||
$(call cc-option, -mpreferred-stack-boundary=2)
|
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_X86)
|
PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_X86)
|
||||||
PLATFORM_CPPFLAGS += -fno-dwarf2-cfi-asm
|
PLATFORM_CPPFLAGS += -fno-dwarf2-cfi-asm
|
||||||
|
|
Loading…
Reference in a new issue