From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 15 22:04:57 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BED3F16A4CE for ; Fri, 15 Apr 2005 22:04:57 +0000 (GMT) Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AAF843D31 for ; Fri, 15 Apr 2005 22:04:57 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr3.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3FM4tpb075718 for ; Sat, 16 Apr 2005 00:04:55 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 21A186289; Sat, 16 Apr 2005 00:04:55 +0200 (CEST) Date: Sat, 16 Apr 2005 00:04:55 +0200 From: Roland Smith To: freebsd-amd64@freebsd.org Message-ID: <20050415220455.GB1698@slackbox.xs4all.nl> Mail-Followup-To: freebsd-amd64@freebsd.org References: <86k6ntw6f8.fsf@xps.des.no> <200504151227.45697.peter@wemm.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lEGEL1/lMxI0MVQ2" Content-Disposition: inline In-Reply-To: <200504151227.45697.peter@wemm.org> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! Organization: Me, organized? X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: INCLUDE_CONFIG_FILE broken? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2005 22:04:57 -0000 --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 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--