From owner-freebsd-questions Thu Apr 8 18:42:26 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 9508214CD1; Thu, 8 Apr 1999 18:42:14 -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 LAA23189; Fri, 9 Apr 1999 11:10:12 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA24203; Fri, 9 Apr 1999 11:10:09 +0930 (CST) Message-ID: <19990409111009.W2142@lemis.com> Date: Fri, 9 Apr 1999 11:10:09 +0930 From: Greg Lehey To: Julian Elischer 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) References: <19990408122944.D2142@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Julian Elischer on Wed, Apr 07, 1999 at 09:16:48PM -0700 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 21:16:48 -0700, Julian Elischer wrote: > 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? Bad presumption. > (we still use aout kernels on 3.1 but I haven't tried in 4.0 for a > while now) I thought they weren't supported in -CURRENT. That's the only place I've implemented it. 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