Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LiEFt-000651-JT for mharc-grub-devel@gnu.org; Fri, 13 Mar 2009 16:45:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiEFs-00064L-3r for grub-devel@gnu.org; Fri, 13 Mar 2009 16:45:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiEFr-000646-Fk for grub-devel@gnu.org; Fri, 13 Mar 2009 16:45:19 -0400 Received: from [199.232.76.173] (port=47783 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiEFr-00063w-8D for grub-devel@gnu.org; Fri, 13 Mar 2009 16:45:19 -0400 Received: from [74.93.104.97] (port=35488 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiEFq-00023X-4p for grub-devel@gnu.org; Fri, 13 Mar 2009 16:45:19 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 36FCFC8D979; Fri, 13 Mar 2009 13:45:05 -0700 (PDT) Date: Fri, 13 Mar 2009 13:45:05 -0700 (PDT) Message-Id: <20090313.134505.185970759.davem@davemloft.net> To: grub-devel@gnu.org, phcoder@gmail.com From: David Miller In-Reply-To: <49BAC506.2030006@gmail.com> References: <49B82B65.3080506@gmail.com> <20090313191442.GC17068@thorin> <49BAC506.2030006@gmail.com> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Subject: Re: ELF bugfixes 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: Fri, 13 Mar 2009 20:45:20 -0000 From: phcoder Date: Fri, 13 Mar 2009 21:41:42 +0100 > Actually our segment table is also our table for transforming > between virtual and physical address. I don't see why entry point > would be defined against virtual address of lowest physical segement I would suggest simply looping over the phdrs and remembering which one the e_entry falls into. Won't that make things work in the case you're describing?