From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 20 06:54:49 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 C89F916A4CE for ; Wed, 20 Apr 2005 06:54:49 +0000 (GMT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A45F43D31 for ; Wed, 20 Apr 2005 06:54:49 +0000 (GMT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id 804B42A8F6 for ; Tue, 19 Apr 2005 23:54:49 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id 2F093E2B3 for ; Tue, 19 Apr 2005 23:54:49 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (8.13.1/8.13.1) with ESMTP id j3K6so7W035047; Tue, 19 Apr 2005 23:54:50 -0700 (PDT) (envelope-from peter@wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by overcee.wemm.org (8.13.1/8.13.1/Submit) id j3K6sdrx035046; Tue, 19 Apr 2005 23:54:39 -0700 (PDT) (envelope-from peter@wemm.org) X-Authentication-Warning: overcee.wemm.org: peter set sender to peter@wemm.org using -f From: Peter Wemm To: freebsd-amd64@freebsd.org Date: Tue, 19 Apr 2005 23:54:39 -0700 User-Agent: KMail/1.7.1 References: <20050416093349.I5888@epsplex.bde.org> <8664yndm6v.fsf@xps.des.no> In-Reply-To: <8664yndm6v.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: <200504192354.39601.peter@wemm.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: Wed, 20 Apr 2005 06:54:49 -0000 On Saturday 16 April 2005 03:56 am, Dag-Erling Sm=F8rgrav wrote: > Bruce Evans writes: > > You could just use the existing mechanism __IDSTRING(), preferably > > after fixing it to actually work. (__IDSTRING() generates invalid > > asm if the string has a newline in it. Among other bugs, this > > breaks most uses of __COPYRIGHT().) > > __IDSTRING() places the string in a separate section. By default, > strings(1) only extracts strings from code and data sections, so the > good old 'strings -n 3 kernel | grep \^___' wouldn't work. Not a big > deal, but still a slight POLA breach. True, but 'strings -a' will do the entire file... Or we can do what linux does and insert things into any section we like=20 by using the gas .incbin "filename" construct. I'm not sure if I like that any more than using objcopy to=20 insert a section. =2D-=20 Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5