+altos (1.9.19-3) unstable; urgency=medium
+
+ * cherry-pick patch from master branch that moves to smaller crt0 to
+ resolve newer compiler overflowing bootloader flash, closes: #1095326
+
+ -- Bdale Garbee <bdale@gag.com> Fri, 21 Feb 2025 03:01:09 -0700
+
altos (1.9.19-2) unstable; urgency=medium
* cherry-pick patch from master branch that fixes FTBFS due to needing
--- /dev/null
+From 13ca1bb20a199447f6e478871f459498d2928bc2 Mon Sep 17 00:00:00 2001
+From: Keith Packard <keithp@keithp.com>
+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 <keithp@keithp.com>
+---
+ 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 776811586..3b0f0bad0 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
+