Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/zaurus/conf Drop CTF sections from this size restri...
details: https://anonhg.NetBSD.org/src/rev/00e6a01f4b1e
branches: trunk
changeset: 968129:00e6a01f4b1e
user: martin <martin%NetBSD.org@localhost>
date: Fri Jan 03 10:01:07 2020 +0000
description:
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)
diffstat:
sys/arch/zaurus/conf/Makefile.zaurus.inc | 3 ++-
sys/arch/zaurus/conf/ldscript.zaurus | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 03d0b842ff58 -r 00e6a01f4b1e sys/arch/zaurus/conf/Makefile.zaurus.inc
--- a/sys/arch/zaurus/conf/Makefile.zaurus.inc Fri Jan 03 08:53:14 2020 +0000
+++ b/sys/arch/zaurus/conf/Makefile.zaurus.inc Fri Jan 03 10:01:07 2020 +0000
@@ -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
diff -r 03d0b842ff58 -r 00e6a01f4b1e sys/arch/zaurus/conf/ldscript.zaurus
--- a/sys/arch/zaurus/conf/ldscript.zaurus Fri Jan 03 08:53:14 2020 +0000
+++ b/sys/arch/zaurus/conf/ldscript.zaurus Fri Jan 03 10:01:07 2020 +0000
@@ -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 @@
/DISCARD/ : {
*(.eh_frame_hdr)
*(.eh_frame)
+ *(.SUNW_ctf)
}
}
SECTIONS
Home |
Main Index |
Thread Index |
Old Index