Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 2003 13:44:39 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        current@freebsd.org
Subject:   Re: FreeBSD/alpha kern.flp flood
Message-ID:  <20030402104439.GA26900@sunbay.com>
In-Reply-To: <20030402151519.U25349@gamplex.bde.org>
References:  <20030329190908R.matusita@jp.FreeBSD.org> <3E857E9C.F7476A32@mindspring.com> <20030329203005.GB94956@sunbay.com> <20030331150348.GD21700@sunbay.com> <20030401194712.GA10151@dragon.nuxi.com> <20030402151519.U25349@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--LQksG6bCIzRHxTLp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Apr 02, 2003 at 03:24:59PM +1000, Bruce Evans wrote:
> On Tue, 1 Apr 2003, David O'Brien wrote:
>=20
> > On Mon, Mar 31, 2003 at 06:03:48PM +0300, Ruslan Ermilov wrote:
> > > Anyway, I've committed the fix to release/Makefile that strips
> > > the .comment section out from the BOOTMFS kernel.  If you have
> > > time, you can exploit the effect of this by changing sweaping
> > > over src/sys/ and changing rcsid =3D "$FreeBSD$" lines to be
> > > __FBSDID() -- that would put these IDs in the .comment section,
> > > thus reducing the size of the stripped kernel by a few more
> > > kilobytes.
> >
> > Why can't the bits be built with -Dlint to remove rcsid's.
>=20
> This would make little difference, since using __FBSDID() or rcsid[]
> in kernel sources is a style bugs, and most of the sources are missing
> this style bug.
>=20
I'd hardly call it a bug, since style(9) explicitly says C files
should use __FBSDID().

> Most of the savings from stripping commits is from removing verbose compi=
ler
> id "GCC: (GNU) 3.2.1 [FreeBSD] 20021119 (release)".
>=20
And I wondered why I get so huge savings where only few files
put $FreeBSD$ into a .comment by way of __FBSDID().  Sure,
``objdump -s -j .comment kernel'' is full of these.

David, can we get rid of the .comment section for the normal
builds too, or at least not put these long GCC strings into?


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--LQksG6bCIzRHxTLp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+ir8XUkv4P6juNwoRAse0AJ9bl2HZZoKipE+/sLcTRCxqtKjO1gCbBo+S
Oc0Y7xFC4cuXL7I5cUgavMI=
=cIqt
-----END PGP SIGNATURE-----

--LQksG6bCIzRHxTLp--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030402104439.GA26900>