configs/stm32f4discovery/kernel/Makefile: Fix a problem with undefined symbol 'abort' from GCC library. Fix by moving libgcc into recursive archive group between --start-group and --end-group. Other kernel/Makefiles suffer from this same issue

This commit is contained in:
Gregory Nutt 2019-06-30 06:47:18 -06:00
parent 0136cd91cb
commit c9bdc101bc

View File

@ -86,7 +86,7 @@ $(COBJS): %$(OBJEXT): %.c
# Create the nuttx_user.elf file containing all of the user-mode code
nuttx_user.elf: $(OBJS)
$(Q) $(LD) -o $@ $(USER_LDFLAGS) $(USER_LIBPATHS) $(OBJS) --start-group $(USER_LDLIBS) --end-group $(USER_LIBGCC)
$(Q) $(LD) -o $@ $(USER_LDFLAGS) $(USER_LIBPATHS) $(OBJS) --start-group $(USER_LDLIBS) $(USER_LIBGCC) --end-group
$(TOPDIR)$(DELIM)nuttx_user.elf: nuttx_user.elf
@echo "LD: nuttx_user.elf"