]> git.gag.com Git - fw/altos/commitdiff
fix for #1095326
authorBdale Garbee <bdale@gag.com>
Fri, 21 Feb 2025 10:01:29 +0000 (03:01 -0700)
committerBdale Garbee <bdale@gag.com>
Fri, 21 Feb 2025 10:01:29 +0000 (03:01 -0700)
debian/changelog
debian/patches/series
debian/patches/use-smaller-crt0.patch [new file with mode: 0644]

index e3222a5bd2fb3af400201a75324fa2ccee7f9188..f4f0df46f1d4ba35d8c9507d53b3952de677d7e5 100644 (file)
@@ -1,3 +1,10 @@
+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
index 6f2a8a22d0f11686793c8893f3be7d3df9958a0e..79812e2f5fffd876a73d65a316d0d8c312fda71a 100644 (file)
@@ -1 +1,2 @@
 more-includes.patch
+use-smaller-crt0.patch
diff --git a/debian/patches/use-smaller-crt0.patch b/debian/patches/use-smaller-crt0.patch
new file mode 100644 (file)
index 0000000..ed8e595
--- /dev/null
@@ -0,0 +1,29 @@
+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
+