From owner-freebsd-hackers Sun Jan 24 14:02:57 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24089 for freebsd-hackers-outgoing; Sun, 24 Jan 1999 14:02:57 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA24082 for ; Sun, 24 Jan 1999 14:02:54 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.9.2/8.9.2/Netplex) with ESMTP id GAA03744; Mon, 25 Jan 1999 06:02:29 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199901242202.GAA03744@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Andreas Klemm cc: hackers@FreeBSD.ORG Subject: Re: How to strip an ELF kernel ? In-reply-to: Your message of "Sun, 24 Jan 1999 18:52:44 +0100." <19990124185244.A70682@titan.klemm.gtn.com> Date: Mon, 25 Jan 1999 06:02:29 +0800 From: Peter Wemm Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andreas Klemm wrote: > Hi ! > > If I want to produce a debugging kernel the good handbook > tells me to do something like this: > config -g kconfigfile > cd ../../compile/kconfigfile > make depend all > cp kernel kernel.debug > strip -d kernel > make install > > The -d option vanished in an ELF world ... What method is > preferred now to get rid of debugging stuff, but still be able > to boot the kernel ?! In theory, you can just 'strip' the kernel entirely and get rid of all debugging symbols. However, the libkvm doesn't know how to look up the symbols from the kernel linker yet, so it still depends on kvm_mkdb unfortunately. This is on the todo list. I believe strip -g is what you want. > Andreas /// Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message