From 5aef48a16bdf90d8cd4f28bb3ab667ca5afba8e0 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 11 Aug 2000 23:23:20 +0000 Subject: [PATCH] Add -mpreferred-stack-boundary=2 to CFLAGS for i386. This and libstand reduces /boot/loader from 163840 bytes to 155648 and pxeboot from 165888 bytes to 157696 bytes. --- sys/boot/ficl/Makefile | 3 +++ sys/boot/i386/Makefile.inc | 1 + 2 files changed, 4 insertions(+) diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile index 88e32995bbb..4f19de874ca 100644 --- a/sys/boot/ficl/Makefile +++ b/sys/boot/ficl/Makefile @@ -7,6 +7,9 @@ CLEANFILES= softcore.c testmain testmain.o .if ${MACHINE_ARCH} == "alpha" CFLAGS+= -mno-fp-regs .endif +.if ${MACHINE_ARCH} == "i386" +CFLAGS+= -mpreferred-stack-boundary=2 +.endif .ifmake testmain CFLAGS+= -DTESTMAIN -D_TESTMAIN SRCS+= testmain.c diff --git a/sys/boot/i386/Makefile.inc b/sys/boot/i386/Makefile.inc index 4c20c10ac16..fa5ea569e60 100644 --- a/sys/boot/i386/Makefile.inc +++ b/sys/boot/i386/Makefile.inc @@ -3,3 +3,4 @@ # $FreeBSD$ LOADER_ADDRESS?= 0x200000 +CFLAGS+= -mpreferred-stack-boundary=2