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.
This commit is contained in:
Peter Wemm 2000-08-11 23:23:20 +00:00
parent 6d93919795
commit 5aef48a16b
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -3,3 +3,4 @@
# $FreeBSD$
LOADER_ADDRESS?= 0x200000
CFLAGS+= -mpreferred-stack-boundary=2