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.
This commit is contained in:
parent
97dc8984f9
commit
fa1fc9094a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user