Date: Mon, 10 Jul 2000 14:10:04 -0700 (PDT) From: Ben Smithurst <ben@FreeBSD.org> To: freebsd-doc@freebsd.org Subject: Re: docs/19648: handbook mentions stripping kernel.debug, but this is done for you Message-ID: <200007102110.OAA06164@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/19648; it has been noted by GNATS. From: Ben Smithurst <ben@FreeBSD.org> To: jblaine@mitre.org Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: docs/19648: handbook mentions stripping kernel.debug, but this is done for you Date: Mon, 10 Jul 2000 21:21:54 +0100 --WplhKdTI2c8ulnbP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable jblaine@mitre.org wrote: > Remove the following paragraph from the appropriate handbook section: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > When the kernel has been built make a copy of it, say kernel.debug, > and then run strip -g on the original. Install the original as > normal. You may also install the unstripped kernel, but symbol table > lookup time for some programs will drastically increase, and since the > whole kernel is loaded entirely at boot time and cannot be swapped out > later, several megabytes of physical memory will be wasted. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Then people with FreeBSD 3.x or earlier will lose that advice... How about something like this instead: --- chapter.sgml 2000/06/14 00:47:36 1.24 +++ chapter.sgml 2000/07/10 20:19:07 @@ -48,7 +48,10 @@ releases.</para> </note> =20 - <para>When the kernel has been built make a copy of it, say + <para>If you are using any version of FreeBSD older than 4.0-RELEASE, + you should install a stripped copy of the kernel, rather than the + significantly larger debug copy. + When the kernel has been built, make a copy of it, say <filename>kernel.debug</filename>, and then run <command>strip -g</command> on the original. Install the original as normal. You may also install the unstripped kernel, but symbol table lookup time= for Is the bit about wasting space still even true? I thought with ELF this situation had improved a bit. Anyone know? --=20 Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D --WplhKdTI2c8ulnbP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: ZCSnMwlYjEoiBfaTeicypkOsiYblncsm iQCVAwUBOWowYSsPVtiZOS99AQEFGAP+K5y9kT4mxDC6emURh5rIltKkmx0wkVah R5q6ezQPd1ut1pwzR8ymsIYWJ0ng9QteHblmZ92UqzepooEmCFK2BxBzrZFGADFB Tyc53IbPTKb4u4lF/3a88ro3G7SH6+5xb6HzNZ9xCchtDTICiROfXC5RqkIyaf8S HGtRgFAqUNM= =u7Y5 -----END PGP SIGNATURE----- --WplhKdTI2c8ulnbP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007102110.OAA06164>