Skip site navigation (1)Skip section navigation (2)
Date:      26 Feb 2000 17:02:22 +0100
From:      naddy@mips.rhein-neckar.de (Christian Weisgerber)
To:        freebsd-questions@freebsd.org
Subject:   Re: Why is my new kernel so big?
Message-ID:  <898tee$1g3e$1@bigeye.rhein-neckar.de>
References:  <mark@dogma.freebsd-uk.eu.org> <200002251624.LAA18500@benge.graphics.cornell.edu> <897eu4$pr3$1@bigeye.rhein-neckar.de> <20000226125745.A326@marder-1>

next in thread | previous in thread | raw e-mail | index | archive | help
Mark Ovens <mark@dogma.freebsd-uk.eu.org> 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

-- 
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?898tee$1g3e$1>