diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2017-07-27 06:12:34 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2017-08-01 20:17:02 +0800 |
commit | 9a95f51ffecc8ff9cf09db1615c1a580731b722f (patch) | |
tree | d727c83a72acc8f13cd35d9c4f68ac836babf4ce /arch/x86/config.mk | |
parent | 6364a5d4bd55beeedc11171419acd0bdff17a599 (diff) | |
download | u-boot-9a95f51ffecc8ff9cf09db1615c1a580731b722f.tar.gz |
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>
Diffstat (limited to 'arch/x86/config.mk')
-rw-r--r-- | arch/x86/config.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/config.mk b/arch/x86/config.mk index 74b87ceac5..043425e5e3 100644 --- a/arch/x86/config.mk +++ b/arch/x86/config.mk @@ -10,8 +10,7 @@ CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000 PLATFORM_CPPFLAGS += -fno-strict-aliasing PLATFORM_CPPFLAGS += -fomit-frame-pointer PF_CPPFLAGS_X86 := $(call cc-option, -fno-toplevel-reorder, \ - $(call cc-option, -fno-unit-at-a-time)) \ - $(call cc-option, -mpreferred-stack-boundary=2) + $(call cc-option, -fno-unit-at-a-time)) PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_X86) PLATFORM_CPPFLAGS += -fno-dwarf2-cfi-asm |