Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/stand Specify -fno-unwind-tables to shrink bi...



details:   https://anonhg.NetBSD.org/src/rev/43043bab4e10
branches:  trunk
changeset: 984469:43043bab4e10
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Jul 09 17:44:28 2021 +0000

description:
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

diffstat:

 sys/arch/hp300/stand/Makefile.buildboot |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6ae73e2319f5 -r 43043bab4e10 sys/arch/hp300/stand/Makefile.buildboot
--- a/sys/arch/hp300/stand/Makefile.buildboot   Fri Jul 09 17:07:29 2021 +0000
+++ b/sys/arch/hp300/stand/Makefile.buildboot   Fri Jul 09 17:44:28 2021 +0000
@@ -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=



Home | Main Index | Thread Index | Old Index