From 1c2846734c3a36ca7ba1776321cd72039c0938fe Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Thu, 7 Jul 2011 18:41:06 +0200 Subject: [PATCH] Stop gcc from reordering functions in loadables. We want the first function first in the binary... --- firmware/loadable/Makefile.sub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/loadable/Makefile.sub b/firmware/loadable/Makefile.sub index e513bb4..aa2f3ee 100644 --- a/firmware/loadable/Makefile.sub +++ b/firmware/loadable/Makefile.sub @@ -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)