From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LiEP8-0003B2-5P for mharc-grub-devel@gnu.org; Fri, 13 Mar 2009 16:54:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiEP6-0003Av-BI for grub-devel@gnu.org; Fri, 13 Mar 2009 16:54:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiEP1-00037X-RV for grub-devel@gnu.org; Fri, 13 Mar 2009 16:54:51 -0400 Received: from [199.232.76.173] (port=35727 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiEP1-00037I-IB for grub-devel@gnu.org; Fri, 13 Mar 2009 16:54:47 -0400 Received: from mu-out-0910.google.com ([209.85.134.188]:24969) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiEP1-00039K-0U for grub-devel@gnu.org; Fri, 13 Mar 2009 16:54:47 -0400 Received: by mu-out-0910.google.com with SMTP id w8so924824mue.6 for ; Fri, 13 Mar 2009 13:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=dQfcrWFSfzBJDsy2bO8ak1XWWeSwZX9c6eMVUgzqlI4=; b=g4jVwxJViIuNZ7fvd9DLNMWjhRKWOcXVB82Vx0DcicJeInAxgSk56hG1m+KBEofHEH LmrKUK8BdvBhBRidFftz67c2vjnoyBnakPFRGD8E6bvun14nP3Kk/4VB64Hiocx91RI+ M7FJd1VDuzGoWrFXQOTdegFqEb8x0H5jDlGJI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=NciQy8HN8yyc4FQaT5k+rclFV6XEjngyS7q3+p5jujeLHFgmnQm3UqzaCvjc2sbq+S lh2Lk9TtFm7NzbLoZJTZJqbhhVQsJMRH9ABUjN5RpC37huhRML/vbXxXJERRkVnUmAQs xwbP5idHZJmA++R0rJ5BnsDQRpkrevqI9HkeM= Received: by 10.103.217.5 with SMTP id u5mr872991muq.42.1236977685779; Fri, 13 Mar 2009 13:54:45 -0700 (PDT) Received: from ?192.168.1.25? (7.86.202.62.cust.bluewin.ch [62.202.86.7]) by mx.google.com with ESMTPS id n10sm4495220mue.9.2009.03.13.13.54.44 (version=SSLv3 cipher=RC4-MD5); Fri, 13 Mar 2009 13:54:45 -0700 (PDT) Message-ID: <49BAC813.1010303@gmail.com> Date: Fri, 13 Mar 2009 21:54:43 +0100 From: phcoder User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: multipart/mixed; boundary="------------070601030400000205040007" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Fwd: 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:54:52 -0000 This is a multi-part message in MIME format. --------------070601030400000205040007 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit -- Regards Vladimir 'phcoder' Serbinenko --------------070601030400000205040007 Content-Type: message/rfc822; name="Re: ELF bugfixes.eml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Re: ELF bugfixes.eml" Delivered-To: phcoder@gmail.com Received: by 10.86.76.11 with SMTP id y11cs26669fga; Fri, 13 Mar 2009 13:53:29 -0700 (PDT) Received: by 10.115.59.4 with SMTP id m4mr1125041wak.37.1236977608372; Fri, 13 Mar 2009 13:53:28 -0700 (PDT) Return-Path: Received: from sunset.davemloft.net ([74.93.104.97]) by mx.google.com with ESMTP id m29si807404poh.20.2009.03.13.13.53.27; Fri, 13 Mar 2009 13:53:28 -0700 (PDT) Received-SPF: neutral (google.com: 74.93.104.97 is neither permitted nor denied by best guess record for domain of davem@davemloft.net) client-ip=74.93.104.97; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.93.104.97 is neither permitted nor denied by best guess record for domain of davem@davemloft.net) smtp.mail=davem@davemloft.net Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 9F4D6C8D979 for ; Fri, 13 Mar 2009 13:53:14 -0700 (PDT) Date: Fri, 13 Mar 2009 13:53:14 -0700 (PDT) Message-Id: <20090313.135314.142627200.davem@davemloft.net> To: phcoder@gmail.com Subject: Re: ELF bugfixes From: David Miller In-Reply-To: <49BAC6E3.70502@gmail.com> References: <49BAC506.2030006@gmail.com> <20090313.134505.185970759.davem@davemloft.net> <49BAC6E3.70502@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 From: phcoder Date: Fri, 13 Mar 2009 21:49:39 +0100 > David Miller wrote: > > 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? > > > I thought I have attached new patch. Sorry forgot to do so This patch looks good to me, FWIW. --------------070601030400000205040007--