summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/gptboot/Makefile
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-05-10 04:05:42 +0000
committerjhb <jhb@FreeBSD.org>2002-05-10 04:05:42 +0000
commit446a06fc8ce91a3bceac8a122adb5f50fdedce8c (patch)
treed5e07a333bf0de0f9c40459342771dd063331256 /sys/boot/i386/gptboot/Makefile
parentab8b1fb87e2482e8820cef45bf1df0cc240f79d0 (diff)
downloadFreeBSD-src-446a06fc8ce91a3bceac8a122adb5f50fdedce8c.zip
FreeBSD-src-446a06fc8ce91a3bceac8a122adb5f50fdedce8c.tar.gz
- Axe -mpreferred-stack-boundary=2 as -Os turns this on by default.
- Axe -fdata-sections as turning it on or off makes no difference. If it did make a difference it would serve to bloat boot2 even further with extra padding. - Axe -fforce-addr. This gets us 32 bytes so we are down to only being 64-bytes over. We still can't compile this with gcc 3.1. The problem seems to be that the -fno-align-foo options don't actually work. Comparing the new and old output it turns out that gcc is 4-byte padding all the functions and labels and what not despite the passed in arguments thus adding the unfortunate bloat to boot2.
Diffstat (limited to 'sys/boot/i386/gptboot/Makefile')
-rw-r--r--sys/boot/i386/gptboot/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile
index be61873..12fa148 100644
--- a/sys/boot/i386/gptboot/Makefile
+++ b/sys/boot/i386/gptboot/Makefile
@@ -27,9 +27,9 @@ BTX= ${.CURDIR}/../btx
ORG1= 0x7c00
ORG2= 0x1000
-CFLAGS= -elf -ffreestanding -Os -fno-builtin -fforce-addr -fdata-sections \
+CFLAGS= -elf -ffreestanding -Os -fno-builtin \
-fno-align-functions -fno-align-jumps -fno-align-loops -fno-align-labels \
- -mrtd -mpreferred-stack-boundary=2 \
+ -mrtd \
-I${.CURDIR}/../btx/lib -I. \
-Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
OpenPOWER on IntegriCloud