Force linker to treat "_start" as undefined, so it pulls it in from src.a.

This commit is contained in:
Jim Paris 2010-09-25 17:48:28 -04:00
parent 9b6f648efb
commit ba2792a70b

View file

@ -45,7 +45,7 @@ CFLAGS_THUMB ?= -mthumb -mcallee-super-interworking
# Linker flags
LINKERSCRIPT ?= $(MC1322X)/mc1322x.lds
LDFLAGS ?= -T $(LINKERSCRIPT) -nostartfiles -static -export-dynamic -Wl,-Map=$(@:.elf=.map)
LDFLAGS ?= -T $(LINKERSCRIPT) -nostartfiles -static -export-dynamic -u_start -Wl,-Map=$(@:.elf=.map)
# Assembler flags
AFLAGS ?= -Wa,-gstabs $(CFLAGS)