Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Gfk2d-0005XT-H6 for mharc-grub-devel@gnu.org; Thu, 02 Nov 2006 16:24:03 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gfk2b-0005QF-4R for grub-devel@gnu.org; Thu, 02 Nov 2006 16:24:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gfk2Y-0005I6-AF for grub-devel@gnu.org; Thu, 02 Nov 2006 16:24:00 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gfk2Y-0005Hp-5W for grub-devel@gnu.org; Thu, 02 Nov 2006 16:23:58 -0500 Received: from [66.111.4.25] (helo=out1.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gfk2X-0006Td-SP for grub-devel@gnu.org; Thu, 02 Nov 2006 16:23:58 -0500 Received: from db2.internal (db2.internal [10.202.2.12]) by frontend1.messagingengine.com (Postfix) with ESMTP id 67EE4DC067A for ; Thu, 2 Nov 2006 16:23:56 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by db2.internal (MEProxy); Thu, 02 Nov 2006 16:23:58 -0500 X-Sasl-enc: Ki6pGTZOxLSjy6Stb6+O/TlR95BNilEXmPHfVwRm6Mul 1162502638 Received: from basalt.austin.ibm.com (bi01p1.co.us.ibm.com [32.97.110.142]) by mail.messagingengine.com (Postfix) with ESMTP id 22DB2122DA for ; Thu, 2 Nov 2006 16:23:57 -0500 (EST) From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <1162500891.23822.12.camel@basalt.austin.ibm.com> References: <1162344225.8547.81.camel@basalt.austin.ibm.com> <200611022058.00253.okuji@enbug.org> <1162500891.23822.12.camel@basalt.austin.ibm.com> Content-Type: text/plain Date: Thu, 02 Nov 2006 15:23:54 -0600 Message-Id: <1162502634.23822.14.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 21:24:01 -0000 On Thu, 2006-11-02 at 14:54 -0600, Hollis Blanchard wrote: > > 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. Note that some modification is necessary. Please look at offset_phdr() again to see what I'm talking about. -Hollis