]> git.gag.com Git - fw/altos/commitdiff
altos/stm: Go back to default crt0 for flash loader
authorKeith Packard <keithp@keithp.com>
Thu, 7 Aug 2025 20:44:14 +0000 (13:44 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 7 Aug 2025 20:44:14 +0000 (13:44 -0700)
Well, that's silly -- the chip setup code is all in a constructor, so we need
the normal crt0 to make sure it gets invoked.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/Makefile-flash.defs

index 3b0f0bad048576b513e01389bc8e8280105ce87f..776811586fdfb467f91078289ee2bb88991248e9 100644 (file)
@@ -35,7 +35,7 @@ IDPRODUCT=0x000a
 
 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS)
 
-LDFLAGS=$(CFLAGS) -L$(TOPDIR)/stm -Taltos-loader.ld -n --crt0=minimal
+LDFLAGS=$(CFLAGS) -L$(TOPDIR)/stm -Taltos-loader.ld -n
 
 PROGNAME=$(HARDWARE)-altos-flash
 PROG=$(PROGNAME)-$(VERSION).elf