Module Name:    src
Committed By:   martin
Date:           Fri Jan  3 10:01:07 UTC 2020

Modified Files:
        src/sys/arch/zaurus/conf: Makefile.zaurus.inc ldscript.zaurus

Log Message:
Drop CTF sections from this size restricted kernel (especially as the
size check is on the total size of the binary, not any content/sections -
is this a bug?)
Compile with -O2 by default (to shrink the kernel to a usable size again
and unbreak the build)


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/zaurus/conf/Makefile.zaurus.inc
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/zaurus/conf/ldscript.zaurus

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/zaurus/conf/Makefile.zaurus.inc
diff -u src/sys/arch/zaurus/conf/Makefile.zaurus.inc:1.10 src/sys/arch/zaurus/conf/Makefile.zaurus.inc:1.11
--- src/sys/arch/zaurus/conf/Makefile.zaurus.inc:1.10	Sat Oct 26 09:49:13 2019
+++ src/sys/arch/zaurus/conf/Makefile.zaurus.inc	Fri Jan  3 10:01:07 2020
@@ -1,7 +1,8 @@
-#	$NetBSD: Makefile.zaurus.inc,v 1.10 2019/10/26 09:49:13 tsutsui Exp $
+#	$NetBSD: Makefile.zaurus.inc,v 1.11 2020/01/03 10:01:07 martin Exp $
 
 MACHINE_ARCH?=		arm
 CPPFLAGS+=		-D${MACHINE}
+COPTS?=			-O2
 
 SYSTEM_FIRST_OBJ=	zaurus_start.o
 SYSTEM_FIRST_SFILE=	${THISARM}/zaurus/zaurus_start.S

Index: src/sys/arch/zaurus/conf/ldscript.zaurus
diff -u src/sys/arch/zaurus/conf/ldscript.zaurus:1.11 src/sys/arch/zaurus/conf/ldscript.zaurus:1.12
--- src/sys/arch/zaurus/conf/ldscript.zaurus:1.11	Sun Aug 23 08:57:25 2015
+++ src/sys/arch/zaurus/conf/ldscript.zaurus	Fri Jan  3 10:01:07 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: ldscript.zaurus,v 1.11 2015/08/23 08:57:25 uebayasi Exp $	*/
+/*	$NetBSD: ldscript.zaurus,v 1.12 2020/01/03 10:01:07 martin Exp $	*/
 
 ENTRY(KERNEL_BASE_phys)
 SECTIONS
@@ -72,6 +72,7 @@ SECTIONS
   /DISCARD/ : {
     *(.eh_frame_hdr)
     *(.eh_frame)
+    *(.SUNW_ctf)
   }
 }
 SECTIONS

Reply via email to