From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 15 19:28:30 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 6CF0616A4CE; Fri, 15 Apr 2005 19:28:30 +0000 (GMT) Received: from peter-laptop.wemm.org (p182.n-lapop01.stsn.com [12.129.240.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFECF43D4C; Fri, 15 Apr 2005 19:28:29 +0000 (GMT) (envelope-from peter@wemm.org) Received: from evilpete.dyndns.org (localhost [127.0.0.1]) by peter-laptop.wemm.org (8.13.3/8.13.3) with ESMTP id j3FJRlMP008187; Fri, 15 Apr 2005 12:27:47 -0700 (PDT) (envelope-from peter@wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by evilpete.dyndns.org (8.13.3/8.13.3/Submit) id j3FJRj6q008186; Fri, 15 Apr 2005 12:27:45 -0700 (PDT) (envelope-from peter@wemm.org) X-Authentication-Warning: evilpete.dyndns.org: peter set sender to peter@wemm.org using -f From: Peter Wemm To: freebsd-amd64@freebsd.org Date: Fri, 15 Apr 2005 12:27:44 -0700 User-Agent: KMail/1.8 References: <86k6ntw6f8.fsf@xps.des.no> In-Reply-To: <86k6ntw6f8.fsf@xps.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200504151227.45697.peter@wemm.org> cc: amd64@freebsd.org 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 19:28:30 -0000 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 gcc-3.4 does entire-file optimization, while 3.3 and earlier look at functi= ons=20 at a time. As a result, gcc is now very good at finding static unused=20 things. We might need to do something different. I'd almost like to insert the con= fig=20 file into its own ELF section via objcopy... =2DPeter