Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun2/conf Reduce kernel size by



details:   https://anonhg.NetBSD.org/src/rev/beb65b180c3b
branches:  trunk
changeset: 974758:beb65b180c3b
user:      rin <rin%NetBSD.org@localhost>
date:      Mon Aug 10 06:29:49 2020 +0000

description:
Reduce kernel size by
- Adding -fno-asynchronous-unwind-tables and -fno-unwind-tables to COPTS
- Specify NO_KERNEL_RCSIDS to strip RCSIDS
Also adding -fno-omit-frame-pointer to COPTS for backtrace in DDB.

diffstat:

 sys/arch/sun2/conf/GENERIC |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r 78ed281c4c9b -r beb65b180c3b sys/arch/sun2/conf/GENERIC
--- a/sys/arch/sun2/conf/GENERIC        Mon Aug 10 06:28:42 2020 +0000
+++ b/sys/arch/sun2/conf/GENERIC        Mon Aug 10 06:29:49 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.106 2020/08/01 08:20:52 maxv Exp $
+# $NetBSD: GENERIC,v 1.107 2020/08/10 06:29:49 rin Exp $
 #
 # GENERIC machine description file
 # 
@@ -29,10 +29,13 @@
 
 #options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "GENERIC-$Revision: 1.106 $"
+#ident                 "GENERIC-$Revision: 1.107 $"
 
-makeoptions    COPTS="-Os -fno-inline-small-functions"
-                                       # bootloader has size limit (~2MB)
+# Bootloader has size limit (~2MB). Kernel should be smaller than this
+# hard limit. Otherwise, it freezes before adding swap even with 7MB
+# memory. -fno-omit-frame-pointer is necessary for backtraces in DDB.
+options        NO_KERNEL_RCSIDS
+makeoptions    COPTS="-Os -fno-inline-small-functions -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-omit-frame-pointer"
 
 # Machines to be supported by this kernel
 #options       FPU_EMULATE



Home | Main Index | Thread Index | Old Index