diff options
author | jhb <jhb@FreeBSD.org> | 2002-05-10 04:05:42 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-05-10 04:05:42 +0000 |
commit | 446a06fc8ce91a3bceac8a122adb5f50fdedce8c (patch) | |
tree | d5e07a333bf0de0f9c40459342771dd063331256 /sys | |
parent | ab8b1fb87e2482e8820cef45bf1df0cc240f79d0 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/boot/i386/boot2/Makefile | 4 | ||||
-rw-r--r-- | sys/boot/i386/gptboot/Makefile | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile index be61873..12fa148 100644 --- a/sys/boot/i386/boot2/Makefile +++ b/sys/boot/i386/boot2/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 \ 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 \ |