diff options
author | Helge Deller <deller@gmx.de> | 2015-02-18 21:26:43 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2015-02-18 21:26:43 +0100 |
commit | eb869303b0c140e806f81f022211648e42290d6d (patch) | |
tree | f306cb341523cec71a82868891992dac3bd0900a | |
parent | 93c9da2e7e499eed47e6ac1596cc3a9415ddc02e (diff) | |
download | palo-eb869303b0c140e806f81f022211648e42290d6d.tar.gz |
Add -fno-delete-null-pointer-checks compiler option
Otherwise gcc-4.9 will miscompile the IPL bootloader since it
will optimize out accesses to PAGE0
-rw-r--r-- | ipl/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ipl/Makefile b/ipl/Makefile index 7695ea5..6b8e105 100644 --- a/ipl/Makefile +++ b/ipl/Makefile @@ -38,7 +38,7 @@ endif # Source sharing with palo VPATH=../lib:. -CFLAGS = -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall +CFLAGS = -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks LDFLAGS = -N --section-start .init=0x60000 -e '$$START$$' all: iplelf @@ -61,8 +61,6 @@ distclean: clean .S.o: $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c -o $*.o $< -###############} - byteio.o \ ext2.o \ fileio.o \ |