Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GfjaW-0005Nc-Bj for mharc-grub-devel@gnu.org; Thu, 02 Nov 2006 15:55:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GfjaU-0005Is-F2 for grub-devel@gnu.org; Thu, 02 Nov 2006 15:54:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GfjaR-0005A9-Cs for grub-devel@gnu.org; Thu, 02 Nov 2006 15:54:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfjaQ-00059j-Vp for grub-devel@gnu.org; Thu, 02 Nov 2006 15:54:55 -0500 Received: from [66.111.4.25] (helo=out1.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GfjaR-0000uv-4S for grub-devel@gnu.org; Thu, 02 Nov 2006 15:54:55 -0500 Received: from db2.internal (db2.internal [10.202.2.12]) by frontend1.messagingengine.com (Postfix) with ESMTP id 7CA06DC0635 for ; Thu, 2 Nov 2006 15:54:53 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by db2.internal (MEProxy); Thu, 02 Nov 2006 15:54:55 -0500 X-Sasl-enc: HSsp1iFBZGRKq+jbkqckR9jSmitgU2KneRJXvLgvRaIY 1162500895 Received: from basalt.austin.ibm.com (bi01p1.co.us.ibm.com [32.97.110.142]) by mail.messagingengine.com (Postfix) with ESMTP id 42A578BEC for ; Thu, 2 Nov 2006 15:54:55 -0500 (EST) From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <200611022058.00253.okuji@enbug.org> References: <1162344225.8547.81.camel@basalt.austin.ibm.com> <200611022058.00253.okuji@enbug.org> Content-Type: text/plain Date: Thu, 02 Nov 2006 14:54:51 -0600 Message-Id: <1162500891.23822.12.camel@basalt.austin.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] generic ELF loading #3 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2006 20:54:58 -0000 On Thu, 2006-11-02 at 21:58 +0200, Yoshinori K. Okuji wrote: > On Wednesday 01 November 2006 02:23, Hollis Blanchard wrote: > > Here is pass #3 of the ELF loader. Changes from #2: > > - the `load' callback no longer modifies the phdr directly > > I still don't understand why you want to pass a hook. Why don't you simply > pass a load address? How do I know what the load address should be before I've even looked at the program header? Just because the x86 loader uses fixed values doesn't mean other loaders should. In particular, the PowerPC loader is happy to load the ELF file wherever it likes, as long as that memory isn't in use. -Hollis