Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2005 00:04:55 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        freebsd-amd64@freebsd.org
Subject:   Re: INCLUDE_CONFIG_FILE broken?
Message-ID:  <20050415220455.GB1698@slackbox.xs4all.nl>
In-Reply-To: <200504151227.45697.peter@wemm.org>
References:  <E1DEjZu-0007MN-RR@cs1.cs.huji.ac.il> <86k6ntw6f8.fsf@xps.des.no> <200504151227.45697.peter@wemm.org>

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

--lEGEL1/lMxI0MVQ2
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Apr 15, 2005 at 12:27:44PM -0700, Peter Wemm wrote:
> On Sunday 27 March 2005 05:43 am, Dag-Erling Sm=F8rgrav wrote:
> > Danny Braniss <danny@cs.huji.ac.il> writes:
> > > it seems that options INCLUDE_CONFIG_FILE in the kernel conf. file
> > > does not work:
> > >
> > > strings -n 3 /boot/kernel/kernel | sed -n 's/^___//p'
> > > _````QQQQ
> > > _
> >
> > The compiler optimizes it away because it's declared static.  I have
> > no idea why this wasn't a problem before; probably a change in
> > compiler flags or in the compiler itself.
> >
> > DES
>=20
> gcc-3.4 does entire-file optimization, while 3.3 and earlier look at
> functions at a time.  As a result, gcc is now very good at finding
> static unused things.
>=20
> We might need to do something different.  I'd almost like to insert
> the config file into its own ELF section via objcopy...

Why not use gcc's __attribute__ ((unused))?

Roland
--=20
R.F. Smith                           /"\    ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l      \ /    No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/         X     No Word docs in e-mail
public key: http://www.keyserver.net / \    Respect for open standards

--lEGEL1/lMxI0MVQ2
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFCYDqHEnfvsMMhpyURAtFrAJ9C1HBjicTHaOIDlBDgd+BKDRbVugCeN/uK
iJ6mvSMSAOW2nmIhQAy2h9A=
=t7wW
-----END PGP SIGNATURE-----

--lEGEL1/lMxI0MVQ2--



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