From owner-freebsd-questions Sat Feb 26 12:25:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by hub.freebsd.org (Postfix) with SMTP id BE00937B523 for ; Sat, 26 Feb 2000 12:25:32 -0800 (PST) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 27205 invoked from network); 26 Feb 2000 20:25:30 -0000 Received: from userau29.uk.uudial.com (HELO marder-1.) (62.188.137.231) by smtp.dial.pipex.com with SMTP; 26 Feb 2000 20:25:30 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.9.3) id UAA00624; Sat, 26 Feb 2000 20:25:13 GMT (envelope-from mark) Date: Sat, 26 Feb 2000 20:25:13 +0000 From: Mark Ovens To: Christian Weisgerber Cc: freebsd-questions@freebsd.org Subject: Re: Why is my new kernel so big? Message-ID: <20000226202512.B327@marder-1> References: <200002251624.LAA18500@benge.graphics.cornell.edu> <897eu4$pr3$1@bigeye.rhein-neckar.de> <20000226125745.A326@marder-1> <898tee$1g3e$1@bigeye.rhein-neckar.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <898tee$1g3e$1@bigeye.rhein-neckar.de>; from naddy@mips.rhein-neckar.de on Sat, Feb 26, 2000 at 05:02:22PM +0100 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Feb 26, 2000 at 05:02:22PM +0100, Christian Weisgerber wrote: > Mark Ovens wrote: > > > > Notice that "make install" will install a stripped kernel, i.e. > > > one without all the debugging symbols added by "-g". If you ever > > > > Err, are you sure? > > Yes. > > > This is a debug kernel, installed by ``make install'' > > > > # ls -l /kernel > > -r-xr-xr-x 1 root wheel 8303201 Feb 24 19:46 /kernel > > # file /kernel > > /kernel: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), > > dynamically linked, not stripped > > marder-1# > > I guess the kernel isn't stripped of all symbols, only the debugging > ones, see this snippet from the Makefile: > > ${KERNEL}: ${FULLKERNEL} > objcopy --strip-debug ${FULLKERNEL} ${KERNEL} > .endif > > naddy@bigeye[~] ll /kernel /sys/compile/BIGEYE/kernel* > -r-xr-xr-x 1 root wheel 1986324 Feb 7 01:57 /kernel > -rwxr-xr-x 1 root wheel 1986324 Feb 7 01:57 /sys/compile/BIGEYE/kernel > -rwxr-xr-x 1 root wheel 7471207 Feb 7 01:56 /sys/compile/BIGEYE/kernel.debug > > This is simply the result of > > # config -g -r BIGEYE > # cd /sys/compile/BIGEYE > # make depend && make -j2 > # make install > Someone else pointed out that this is version-dependent behaviour. Is your system 4.x? I'm running 3.4-STABLE > -- > Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Microsoft: Where do you want to go today? Linux: Where do you want to go tomorrow? BSD: Are you guys coming, or what? -Poster at LinuxWorld 2000 ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message