From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6919 invoked from network); 6 Apr 2000 18:17:21 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 6 Apr 2000 18:17:21 -0000 Received: from piglet.twiddle.net (piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA16107 for ; Thu, 6 Apr 2000 14:17:20 -0400 Received: (from rth@localhost) by piglet.twiddle.net (8.9.3/8.9.3) id LAA05975; Thu, 6 Apr 2000 11:17:12 -0700 Date: Thu, 6 Apr 2000 11:17:12 -0700 From: Richard Henderson To: Andrea Arcangeli Cc: Linus Torvalds , axp-list@redhat.com, linux-alpha@vger.rutgers.edu Subject: Re: 2.3.99-3 axp combo patch Message-ID: <20000406111712.A5964@twiddle.net> References: <20000330202907.B5638@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: On Fri, Mar 31, 2000 at 03:48:46PM +0200, Andrea Arcangeli wrote: > You have to hardcode something. The vmlinux.gz is stripped, you > can't find out the offset of a variable name by looking up the > elf section. No, there are at least three options for not hardcoding: (1) Use a PT_NOTE phdr. (2) Look into the section tables for a known name. (3) Pass the address in in a register. I kinda like number 1 because it absolutely forces the boot loaders to be upgraded -- all of them currently give up loading if there is more than one phdr (which was stupid to boot). However, I can see the argument that this isn't the best way to manage the release process, which would force one of the other harder options, which also incurr the need for sanity checking in the kernel when trying to locate the argument block. r~