]> git.gag.com Git - fw/altos/commitdiff
altos: Use smaller crt0 for stm boot loader
authorKeith Packard <keithp@keithp.com>
Sun, 16 Feb 2025 22:03:30 +0000 (14:03 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 16 Feb 2025 22:03:30 +0000 (14:03 -0800)
This eliminates some of unnecessary startup code and saves a bit of
flash.

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

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