From: Keith Packard Date: Sun, 16 Feb 2025 22:03:30 +0000 (-0800) Subject: altos: Use smaller crt0 for stm boot loader X-Git-Tag: 1.9.20~1^2~18 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=13ca1bb20a199447f6e478871f459498d2928bc2;p=fw%2Faltos altos: Use smaller crt0 for stm boot loader This eliminates some of unnecessary startup code and saves a bit of flash. Signed-off-by: Keith Packard --- diff --git a/src/stm/Makefile-flash.defs b/src/stm/Makefile-flash.defs index 77681158..3b0f0bad 100644 --- a/src/stm/Makefile-flash.defs +++ b/src/stm/Makefile-flash.defs @@ -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