From 909b916e56dcbb9e4fa1334055cea998b03d99b4 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 1 Jul 2015 11:31:40 -0700 Subject: libpayload: Keep stack boundary small on x86 There is no measurable performance impact, but this positively impacts the memory used by payloads. Change-Id: Ib2bdba4a7bf2a4c2391a20b3225bbb44422d3194 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/10751 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- payloads/libpayload/arch/x86/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'payloads') diff --git a/payloads/libpayload/arch/x86/Makefile.inc b/payloads/libpayload/arch/x86/Makefile.inc index 87b3e9e842..6517bf196c 100644 --- a/payloads/libpayload/arch/x86/Makefile.inc +++ b/payloads/libpayload/arch/x86/Makefile.inc @@ -27,6 +27,8 @@ ## SUCH DAMAGE. ## +CFLAGS += -mpreferred-stack-boundary=2 + head.o-y += head.S libc-y += main.c sysinfo.c libc-y += timer.c coreboot.c util.S -- cgit v1.2.3