From owner-freebsd-amd64@FreeBSD.ORG Sat Apr 16 10:56:46 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 DA75D16A4CE for ; Sat, 16 Apr 2005 10:56:46 +0000 (GMT) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D12943D3F for ; Sat, 16 Apr 2005 10:56:46 +0000 (GMT) (envelope-from des@des.no) Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) by bgo1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IF1002UYCT6DE00@bgo1smout1.broadpark.no> for freebsd-amd64@freebsd.org; Sat, 16 Apr 2005 12:51:06 +0200 (CEST) Received: from dsa.des.no ([80.203.228.37]) by bgo1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IF10095BD4LYKA0@bgo1sminn1.broadpark.no> for freebsd-amd64@freebsd.org; Sat, 16 Apr 2005 12:57:58 +0200 (CEST) Received: by dsa.des.no (Pony Express, from userid 666) id 5ECD5EBCB4; Sat, 16 Apr 2005 12:56:45 +0200 (CEST) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id 6B4EEEBC08; Sat, 16 Apr 2005 12:56:40 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 3948333C09; Sat, 16 Apr 2005 12:56:40 +0200 (CEST) Date: Sat, 16 Apr 2005 12:56:40 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) In-reply-to: <20050416093349.I5888@epsplex.bde.org> To: Bruce Evans Message-id: <8664yndm6v.fsf@xps.des.no> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on dsa.des.no References: <86k6ntw6f8.fsf@xps.des.no> <20050415220455.GB1698@slackbox.xs4all.nl> <20050416093349.I5888@epsplex.bde.org> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.0.2 X-Spam-Level: cc: freebsd-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: Sat, 16 Apr 2005 10:56:47 -0000 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. Including the config file unaltered as a separate ELF section might be conceptually cleaner, but objdump(1) doesn't seem to have an option to dump the unaltered contents of a section (it prints the contents in a format similar to 'hexdump -C') so we'd need a special-purpose tool to extract the file. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no