Date: Fri, 21 Nov 1997 11:43:50 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Bruce Evans <bde@zeta.org.au> Cc: evanc@synapse.net, mike@smith.net.au, freebsd-current@FreeBSD.ORG Subject: Re: Stripping the kernel Message-ID: <1451.880109030@critter.freebsd.dk> In-Reply-To: Your message of "Fri, 21 Nov 1997 21:00:19 %2B1100." <199711211000.VAA01006@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1451.880109030>