From 07b3dca95958f886580de980fca47df240244995 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Tue, 21 Apr 2020 11:41:03 -0700 Subject: [PATCH] AppMakefile.mk: Fix the linker ordering Signed-off-by: Alistair Francis --- AppMakefile.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AppMakefile.mk b/AppMakefile.mk index 6d1a70980..46a0ef23a 100644 --- a/AppMakefile.mk +++ b/AppMakefile.mk @@ -128,8 +128,7 @@ $$(BUILDDIR)/$(1)/$(1).elf: $$(OBJS_$(1)) $$(LIBS_$(1)) $$(LEGACY_LIBS_$(1)) $$( -Xlinker --defsym=KERNEL_HEAP_SIZE=$$(KERNEL_HEAP_SIZE)\ -T $$(LAYOUT)\ -nostdlib\ - $$(LINK_LIBS_$(1))\ - -Wl,--start-group $$(OBJS_$(1)) $$(LIBS_$(1)) $$(LEGACY_LIBS_$(1)) -Wl,--end-group\ + -Wl,--start-group $$(OBJS_$(1)) $$(LIBS_$(1)) $$(LEGACY_LIBS_$(1)) $$(LINK_LIBS_$(1)) -Wl,--end-group\ -Wl,-Map=$$(BUILDDIR)/$(1)/$(1).Map\ -o $$@