From 13ca1bb20a199447f6e478871f459498d2928bc2 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 16 Feb 2025 14:03:30 -0800 Subject: [PATCH] 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 --- src/stm/Makefile-flash.defs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2