summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-11-25 21:08:31 +0000
committerdim <dim@FreeBSD.org>2014-11-25 21:08:31 +0000
commitdab4dfc54afbac84a024a6e8eb5f21a90d69f3fe (patch)
tree8fdcf3e5bb47d625bc45ebc234e08db462e22aa6
parent9bedf10b184cfd8405fcde3b233f86d8c3955338 (diff)
downloadFreeBSD-src-dab4dfc54afbac84a024a6e8eb5f21a90d69f3fe.zip
FreeBSD-src-dab4dfc54afbac84a024a6e8eb5f21a90d69f3fe.tar.gz
Similar to r274977, use the correct combination of flags to get the pc98
boot2 below the limit.
-rw-r--r--sys/boot/pc98/boot2/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/pc98/boot2/Makefile b/sys/boot/pc98/boot2/Makefile
index 0b744aa..3d571cf 100644
--- a/sys/boot/pc98/boot2/Makefile
+++ b/sys/boot/pc98/boot2/Makefile
@@ -19,8 +19,7 @@ BOOT2_UFS?= UFS1_AND_UFS2
#BOOT2_UFS?= UFS2_ONLY
#BOOT2_UFS?= UFS1_ONLY
-CFLAGS= -Os \
- -fomit-frame-pointer \
+CFLAGS= -fomit-frame-pointer \
-mrtd \
-mregparm=3 \
-D${BOOT2_UFS} \
@@ -37,7 +36,8 @@ CFLAGS= -Os \
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
-Winline
-CFLAGS.gcc+= -fno-guess-branch-probability \
+CFLAGS.gcc+= -Os \
+ -fno-guess-branch-probability \
-fno-unit-at-a-time \
-mno-align-long-strings \
--param max-inline-insns-single=100
@@ -48,7 +48,7 @@ CFLAGS.gcc+= -fno-guess-branch-probability \
# Initialize the bi_bios_geom using the BIOS geometry
#CFLAGS+= -DGET_BIOSGEOM
-CFLAGS.clang+=${CLANG_OPT_SMALL}
+CFLAGS.clang+= -Oz ${CLANG_OPT_SMALL}
LD_FLAGS=-static -N --gc-sections
OpenPOWER on IntegriCloud