Subject: Building a debug kernel
To: None <port-pmax@NetBSD.ORG>
From: maximum entropy <entropy@zippy.bernstein.com>
List: port-pmax
Date: 11/09/1997 03:12:46
[with sources supped 11/4/97, and binutils 2.8]

I just tried building a debugging kernel for the first time and ran
into a small snag.  I added

makeoptions DEBUG="-g"

to my kernel config, and recompiled.  ``strip'' complained that it
didn't recognize the "-d" option.

This change seems to be required to make it do the right thing, given
the GNU binutils toolchain:

--- /usr/src/sys/arch/pmax/conf/Makefile.pmax.old	Thu Oct  9 19:28:38 1997
+++ /usr/src/sys/arch/pmax/conf/Makefile.pmax	Sun Nov  9 02:49:07 1997
@@ -45,7 +45,7 @@
 CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS} -mno-abicalls -mno-half-pic
 AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
 LINKFLAGS=	-Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript -e start ${GP}
-STRIPFLAGS=	-d
+STRIPFLAGS=	-g
 
 ### find out what to use for libkern
 .include "$S/lib/libkern/Makefile.inc"

Cheers,
entropy

--
entropy -- it's not just a good idea, it's the second law.