Skip to content

Commit 58e47dc

Browse files
committed
gcc makefile - use group for ld to resolve symbols from libraries
1 parent 8681a8d commit 58e47dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workspace_tools/export/gcc_arm_common.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ clean:
8181

8282
{% block target_project_elf %}
8383
$(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS)
84-
$(LD) $(LD_FLAGS) -T$(LINKER_SCRIPT) $(LIBRARY_PATHS) -o $@ $^ $(LIBRARIES) $(LD_SYS_LIBS) $(LIBRARIES) $(LD_SYS_LIBS)
84+
$(LD) $(LD_FLAGS) -T$(LINKER_SCRIPT) $(LIBRARY_PATHS) -o $@ $^ -Wl,--start-group $(LIBRARIES) $(LD_SYS_LIBS) -Wl,--end-group
8585
{% endblock %}
8686

8787
$(PROJECT).bin: $(PROJECT).elf

0 commit comments

Comments
 (0)