Stop gcc from reordering functions in loadables. We want the first function first in the binary...

This commit is contained in:
Stefan `Sec` Zehl 2011-07-07 18:41:06 +02:00
parent e7adf388bf
commit 1c2846734c
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ include $(ROOT_PATH)/Makefile.inc
FIRMWARE=$(ROOT_PATH)/$(OUTFILE).elf
LDSRCFILE=$(DIR)/ram.ld
LDFILE=$(DIR)/loadable.ld
CFLAGS+=-mlong-calls
CFLAGS+=-mlong-calls -fno-toplevel-reorder
LDFLAGS+= -R $(FIRMWARE)
all: $(OBJS) $(ELFS) $(BINS) $(HDRS)