From owner-freebsd-questions Wed Apr 7 20: 1:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 27AC0151F1; Wed, 7 Apr 1999 20:01:52 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id MAA17698; Thu, 8 Apr 1999 12:29:51 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id MAA20280; Thu, 8 Apr 1999 12:29:44 +0930 (CST) Message-ID: <19990408122944.D2142@lemis.com> Date: Thu, 8 Apr 1999 12:29:44 +0930 From: Greg Lehey To: Nick Hibma , Greg Black Cc: Peter Wemm , Archie Cobbs , Christopher Michaels , questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Debug kernel by default (was: System size with -g) References: <19990407124941.15721.qmail@alpha.comkey.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Nick Hibma on Wed, Apr 07, 1999 at 03:35:15PM +0200 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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} 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-questions" in the body of the message