Date: Mon, 25 Jan 1999 06:02:29 +0800 From: Peter Wemm <peter@netplex.com.au> To: Andreas Klemm <andreas@klemm.gtn.com> Cc: hackers@FreeBSD.ORG Subject: Re: How to strip an ELF kernel ? Message-ID: <199901242202.GAA03744@spinner.netplex.com.au> In-Reply-To: Your message of "Sun, 24 Jan 1999 18:52:44 %2B0100." <19990124185244.A70682@titan.klemm.gtn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901242202.GAA03744>