From owner-freebsd-current Fri Nov 21 02:45:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA00294 for current-outgoing; Fri, 21 Nov 1997 02:45:58 -0800 (PST) (envelope-from owner-freebsd-current) Received: from critter.freebsd.dk ([195.8.128.125]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA00283 for ; Fri, 21 Nov 1997 02:45:53 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.7) with ESMTP id LAA01453; Fri, 21 Nov 1997 11:43:51 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Bruce Evans cc: evanc@synapse.net, mike@smith.net.au, freebsd-current@FreeBSD.ORG Subject: Re: Stripping the kernel In-reply-to: Your message of "Fri, 21 Nov 1997 21:00:19 +1100." <199711211000.VAA01006@godzilla.zeta.org.au> Date: Fri, 21 Nov 1997 11:43:50 +0100 Message-ID: <1451.880109030@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <199711211000.VAA01006@godzilla.zeta.org.au>, Bruce Evans writes: >>> Does anyone else thing this might be a good idea? >>> >>> Change /sys/i386/conf/Makefile.i386's install line to: >>> >>> install -s -c -m 555 -o root -g wheel -fschg kernel / >>> >>> The reason is this: I compiled a kernel with debug symbols (-g) and it >>> tried to install an 8 MB kernel; stripped, it was 800k. >> >>No. If you build a kernel with debug symbols, it is expected that you >>realise how big it is, and strip it if required before installing it. > >Also, full stripping breaks everything that uses nlist(3) on the kernel. >strip(1) supports several forms of partial stipping, but install(1) only >supports full stripping. I have been thinking about adding a "strip -d kernel" before installing to the makefile... -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop."