From owner-freebsd-current Fri Nov 21 02:04:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA28636 for current-outgoing; Fri, 21 Nov 1997 02:04:26 -0800 (PST) (envelope-from owner-freebsd-current) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA28629 for ; Fri, 21 Nov 1997 02:04:21 -0800 (PST) (envelope-from bde@zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.6.9) id VAA01006; Fri, 21 Nov 1997 21:00:19 +1100 Date: Fri, 21 Nov 1997 21:00:19 +1100 From: Bruce Evans Message-Id: <199711211000.VAA01006@godzilla.zeta.org.au> To: evanc@synapse.net, mike@smith.net.au Subject: Re: Stripping the kernel Cc: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> 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. Bruce