Fri Jul 9 17:44:28 2021 UTC ()
Specify -fno-unwind-tables to shrink binaries.

Before:
   text    data     bss     dec     hex filename
  77902    4328  137120  219350   358d6 uboot
After:
   text    data     bss     dec     hex filename
  64186    4328  137120  205634   32342 uboot


(tsutsui)
diff -r1.36 -r1.37 src/sys/arch/hp300/stand/Makefile.buildboot

cvs diff -r1.36 -r1.37 src/sys/arch/hp300/stand/Makefile.buildboot (expand / switch to context diff)
--- src/sys/arch/hp300/stand/Makefile.buildboot 2017/04/08 19:53:20 1.36
+++ src/sys/arch/hp300/stand/Makefile.buildboot 2021/07/09 17:44:28 1.37
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.buildboot,v 1.36 2017/04/08 19:53:20 christos Exp $
+#	$NetBSD: Makefile.buildboot,v 1.37 2021/07/09 17:44:28 tsutsui Exp $
 
 # RELOC=FFF00000 allows for boot prog up to FF000 (1044480) bytes long
 RELOC=	FFF00000
@@ -20,7 +20,7 @@
 CPPFLAGS+=	-I${.CURDIR}/../../.. -I${.CURDIR}/../../../..  -I${.OBJDIR}
 CPPFLAGS+=	-Wno-main
 CPPFLAGS+=	-D__daddr_t=int32_t
-CFLAGS=		-Os -msoft-float -ffreestanding
+CFLAGS=		-Os -fno-unwind-tables -msoft-float -ffreestanding
 
 # XXX SHOULD NOT NEED TO DEFINE THESE!
 LIBCRT0=