From 8948524fd397da3a54e8fa663678b328083fd9c9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 8 Apr 2012 13:03:26 +0000 Subject: [PATCH] Include libgcc.a inside of the group of recursively linked libraries in all Makefiles git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4573 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/Makefile | 2 +- arch/avr/src/Makefile | 2 +- arch/hc/src/Makefile | 2 +- arch/mips/src/Makefile | 2 +- arch/sh/src/Makefile | 2 +- arch/sim/src/Makefile | 2 +- arch/x86/src/Makefile | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/src/Makefile b/arch/arm/src/Makefile index 3d4f30043b..9f019862a5 100644 --- a/arch/arm/src/Makefile +++ b/arch/arm/src/Makefile @@ -110,7 +110,7 @@ board/libboard$(LIBEXT): nuttx: $(HEAD_OBJ) board/libboard$(LIBEXT) @echo "LD: nuttx" @$(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \ - --start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC) + --start-group $(LDLIBS) -lboard $(EXTRA_LIBS) $(LIBGCC) --end-group ifeq ($(CONFIG_BOOT_RUNFROMFLASH),y) @export flashloc=`$(OBJDUMP) --all-headers $(NUTTX)$(EXEEXT) | grep _eronly | cut -d' ' -f1`; \ $(OBJCOPY) $(OBJCOPYARGS) --adjust-section-vma=.data=0x$$flashloc $(NUTTX)$(EXEEXT) $(NUTTX).flashimage diff --git a/arch/avr/src/Makefile b/arch/avr/src/Makefile index 6bcb8707b8..7034ef8f40 100644 --- a/arch/avr/src/Makefile +++ b/arch/avr/src/Makefile @@ -115,7 +115,7 @@ board/libboard$(LIBEXT): nuttx: $(HEAD_OBJ) board/libboard$(LIBEXT) @echo "LD: nuttx" @$(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \ - --start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC) + --start-group $(LDLIBS) -lboard $(EXTRA_LIBS) $(LIBGCC) --end-group @$(NM) $(NUTTX)$(EXEEXT) | \ grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ sort > $(TOPDIR)/System.map diff --git a/arch/hc/src/Makefile b/arch/hc/src/Makefile index 63b8df643e..c8d98cf59d 100755 --- a/arch/hc/src/Makefile +++ b/arch/hc/src/Makefile @@ -106,7 +106,7 @@ board/libboard$(LIBEXT): nuttx: $(HEAD_OBJ) board/libboard$(LIBEXT) @echo "LD: nuttx" @$(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) \ - --start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC) + --start-group $(LDLIBS) -lboard $(EXTRA_LIBS) $(LIBGCC) --end-group ifeq ($(CONFIG_BOOT_RUNFROMFLASH),y) @export flashloc=`$(OBJDUMP) --all-headers $(NUTTX)$(EXEEXT) | grep _eronly | cut -d' ' -f1`; \ $(OBJCOPY) $(OBJCOPYARGS) --adjust-section-vma=.data=0x$$flashloc $(NUTTX)$(EXEEXT) $(NUTTX).flashimage diff --git a/arch/mips/src/Makefile b/arch/mips/src/Makefile index 5c763da1e1..8d7b940c6f 100644 --- a/arch/mips/src/Makefile +++ b/arch/mips/src/Makefile @@ -104,7 +104,7 @@ board/libboard$(LIBEXT): nuttx: $(HEAD_OBJ) board/libboard$(LIBEXT) @echo "LD: nuttx" @$(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \ - --start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC) + --start-group $(LDLIBS) -lboard $(EXTRA_LIBS) $(LIBGCC) --end-group @$(NM) $(NUTTX)$(EXEEXT) | \ grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ sort > $(TOPDIR)/System.map diff --git a/arch/sh/src/Makefile b/arch/sh/src/Makefile index 4a6f3eb9c3..1e260d83b9 100644 --- a/arch/sh/src/Makefile +++ b/arch/sh/src/Makefile @@ -84,7 +84,7 @@ board/libboard$(LIBEXT): nuttx: $(HEAD_OBJ) board/libboard$(LIBEXT) @echo "LD: nuttx" @$(LD) --entry=__start $(LDFLAGS) $(LDPATHES) -L$(BOARDDIR) -o $(TOPDIR)/$@ $(HEAD_OBJ) \ - --start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC) + --start-group $(LDLIBS) -lboard $(EXTRA_LIBS) $(LIBGCC) --end-group ifeq ($(CONFIG_BOOT_RUNFROMFLASH),y) @export flashloc=`$(OBJDUMP) --all-headers $(TOPDIR)/$@ | grep _eronly | cut -d' ' -f1`; \ $(OBJCOPY) --adjust-section-vma=.data=0x$$flashloc $(TOPDIR)/$@ $(TOPDIR)/$@.flashimage diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 8a228ec390..d74e1c005b 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -172,7 +172,7 @@ Cygwin-names.dat: nuttx-names.dat nuttx.rel : libarch$(LIBEXT) board/libboard$(LIBEXT) $(HOSTOS)-names.dat $(LINKOBJS) @echo "LD: nuttx.rel" - @$(LD) -r $(LDLINKFLAGS) $(LDPATHS) -o $@ $(REQUIREDOBJS) --start-group $(LDLIBS) --end-group $(EXTRA_LIBS) + @$(LD) -r $(LDLINKFLAGS) $(LDPATHS) -o $@ $(REQUIREDOBJS) --start-group $(LDLIBS) $(EXTRA_LIBS) --end-group @$(OBJCOPY) --redefine-syms=$(HOSTOS)-names.dat $@ # Generate the final NuttX binary by linking the host-specific objects with the NuttX diff --git a/arch/x86/src/Makefile b/arch/x86/src/Makefile index 1221262965..c4077b5ccb 100644 --- a/arch/x86/src/Makefile +++ b/arch/x86/src/Makefile @@ -112,7 +112,7 @@ board/libboard$(LIBEXT): nuttx$(EXEEXT): $(HEAD_OBJ) board/libboard$(LIBEXT) @echo "LD: nuttx$(EXEEXT)" @$(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \ - --start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC) + --start-group $(LDLIBS) -lboard $(EXTRA_LIBS) $(LIBGCC) --end-group ifeq ($(CONFIG_BOOT_RUNFROMFLASH),y) @export flashloc=`$(OBJDUMP) --all-headers $(NUTTX)$(EXEEXT) | grep _eronly | cut -d' ' -f1`; \ $(OBJCOPY) $(OBJCOPYARGS) --adjust-section-vma=.data=0x$$flashloc $(NUTTX)$(EXEEXT) $(NUTTX).flashimage