From owner-freebsd-questions Wed Apr 7 21:27:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id C4AD5151F6; Wed, 7 Apr 1999 21:27:52 -0700 (PDT) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id VAA68002; Wed, 7 Apr 1999 21:16:50 -0700 (PDT) Date: Wed, 7 Apr 1999 21:16:48 -0700 (PDT) From: Julian Elischer To: Greg Lehey Cc: Nick Hibma , Greg Black , Peter Wemm , Archie Cobbs , Christopher Michaels , questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Debug kernel by default (was: System size with -g) In-Reply-To: <19990408122944.D2142@lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 8 Apr 1999, Greg Lehey wrote: > On Wednesday, 7 April 1999 at 15:35:15 +0200, Nick Hibma wrote: > > On Wed, 7 Apr 1999, Greg Black wrote: > > > >>>> And on the subject of debugging kernels getting built, I'd tend to > >>>> agree. Don't install them though, install the stripped version. > >>> > >>> I had planned to leave that to the user: 'make install' will install a > >>> stripped kernel, 'make install.debug' will install the full symbol > >>> kernel. I still think this is a reasonable compromise. > >> > >> Agreed. > > > > Will that include a stripping of the previous kernel? > > > > if -x /kernel > > strip -g /kernel > > mv /kernel > > > > This is required or otherwise make the root partition bigger by > > default. 2x10Mb for the kernel does not leave a lot of room for > > etc. Patch for this is available if wanted. Just bounce me a > > message. > > Well, that's not quite the way I'm doing it. By default, I make a > kernel called kernel.debug and use the following rule to create a > stripped kernel: > > ${KERNEL}: ${KERNEL}.debug > objcopy --strip-debug ${KERNEL}.debug ${KERNEL} So I presume you've made an aout kernel? (we still use aout kernels on 3.1 but I haven't tried in 4.0 for a while now) > > The 'install' target installs the stripped kernel, and depends on this > rule. > > Greg > -- > See complete headers for address, home page and phone numbers > finger grog@lemis.com for PGP public key > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message