diff options
author | marcel <marcel@FreeBSD.org> | 2004-08-22 06:24:59 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-08-22 06:24:59 +0000 |
commit | cc3398a62e169753934c155b12fb099db525d064 (patch) | |
tree | 89cc0f3630e04d5976ccc8d2da0e4edd3866f4df | |
parent | 9ffe386e731bfea1183e50c9e300992a5ce61dd2 (diff) | |
download | FreeBSD-src-cc3398a62e169753934c155b12fb099db525d064.zip FreeBSD-src-cc3398a62e169753934c155b12fb099db525d064.tar.gz |
Part 2 of fixing the boot code: gcc 3.4 fixes.
The whole problem seems to be size. Which is odd, because it is said
that size doesn't matter. Anyway... Add -Os to strategic places in the
makefile to have the final loader be as mall as possible. This seems
to be enough to make it work. For now... I think something is more
fundamentally wrong; or something more fundamental is wrong. Potato,
potaato.
-rw-r--r-- | sys/boot/alpha/Makefile.inc | 2 | ||||
-rw-r--r-- | sys/boot/ficl/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/alpha/Makefile.inc b/sys/boot/alpha/Makefile.inc index 19af97e..17d17b9 100644 --- a/sys/boot/alpha/Makefile.inc +++ b/sys/boot/alpha/Makefile.inc @@ -3,7 +3,7 @@ BINDIR?= /boot -CFLAGS+= -ffreestanding -mno-fp-regs +CFLAGS+= -ffreestanding -mno-fp-regs -Os LDFLAGS+= -nostdlib PRIMARY_LOAD_ADDRESS= 0x20000000 # "Region 1 start" SECONDARY_LOAD_ADDRESS= 0x2000c000 # "Region 1 start" + 48k diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile index 6f913b9..c455e7a 100644 --- a/sys/boot/ficl/Makefile +++ b/sys/boot/ficl/Makefile @@ -8,7 +8,7 @@ SRCS= ${BASE_SRCS} sysdep.c softcore.c CLEANFILES= softcore.c testmain testmain.o CFLAGS+= -ffreestanding .if ${MACHINE_ARCH} == "alpha" -CFLAGS+= -mno-fp-regs +CFLAGS+= -mno-fp-regs -Os .endif .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" CFLAGS+= -mpreferred-stack-boundary=2 |