Stop gcc from reordering functions in loadables. We want the first function first in the binary...
This commit is contained in:
parent
e7adf388bf
commit
1c2846734c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue