summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorHolger Lubitz2007-06-17 22:16:31 +0200
committerMichael Brown2007-07-09 04:32:54 +0200
commit4ff85d9f15a1d858782c4a92a11e03c6a211e5c8 (patch)
treedaf32cc4d48f280706b758df2c2518750fe02351 /src/arch
parentUpdate Makefile for compilation on ARCH=x86_64 (diff)
downloadipxe-4ff85d9f15a1d858782c4a92a11e03c6a211e5c8.tar.gz
ipxe-4ff85d9f15a1d858782c4a92a11e03c6a211e5c8.tar.xz
ipxe-4ff85d9f15a1d858782c4a92a11e03c6a211e5c8.zip
Add -mpreferred-stack-boundary=2 to i386 CFLAGS as it's almost always a win.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/Config3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/i386/Config b/src/arch/i386/Config
index 03836c8b..dc96e0af 100644
--- a/src/arch/i386/Config
+++ b/src/arch/i386/Config
@@ -136,6 +136,9 @@ ifneq ($(GCC_MINORVERSION),4)
CFLAGS+= -march=i386
endif
+# this is almost always a win. the kernel uses it, too.
+CFLAGS+= -mpreferred-stack-boundary=2
+
LDFLAGS+= -N
ifeq "$(shell uname -s)" "FreeBSD"