diff --git a/Makefile b/Makefile index a730b4f..a9959ae 100644 --- a/Makefile +++ b/Makefile @@ -132,7 +132,7 @@ $(LIBS): %: ### Rule (link): objects (`*.o`) and libraries (`*.a`) -> `IMAGE.elf`, the final ELF binary to be packed into image (ld) $(IMAGE).elf: $(OBJS) am $(LIBS) @echo + LD "->" $(IMAGE_REL).elf - @$(LD) $(LDFLAGS) -o $(IMAGE).elf $(LINKAGE) + @$(LD) $(LDFLAGS) -o $(IMAGE).elf --start-group $(LINKAGE) --end-group ### Rule (archive): objects (`*.o`) -> `ARCHIVE.a` (ar) $(ARCHIVE): $(OBJS)