From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KLLCu-0003GX-29 for mharc-grub-devel@gnu.org; Tue, 22 Jul 2008 12:59:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLLCr-0003E1-L7 for grub-devel@gnu.org; Tue, 22 Jul 2008 12:59:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLLCo-0003AW-P4 for grub-devel@gnu.org; Tue, 22 Jul 2008 12:59:21 -0400 Received: from [199.232.76.173] (port=46503 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLLCo-0003A9-F3 for grub-devel@gnu.org; Tue, 22 Jul 2008 12:59:18 -0400 Received: from mailout11.t-online.de ([194.25.134.85]:46144) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLLCo-0006EI-78 for grub-devel@gnu.org; Tue, 22 Jul 2008 12:59:18 -0400 Received: from fwd24.aul.t-online.de by mailout11.sul.t-online.de with smtp id 1KLLCk-00013Z-00; Tue, 22 Jul 2008 18:59:14 +0200 Received: from [10.3.2.2] (bdsZIQZXrhrAclRodaDlagBTWYD7fQOIHSqfqw3LQKguKyB8MqYeFOWVxV1b9XfwXA@[217.235.254.21]) by fwd24.aul.t-online.de with esmtp id 1KLLCS-1789Jo0; Tue, 22 Jul 2008 18:58:56 +0200 Message-ID: <488611D1.5070002@t-online.de> Date: Tue, 22 Jul 2008 18:58:57 +0200 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 MIME-Version: 1.0 To: The development of GRUB 2 References: <4883A568.10709@t-online.de> <1KKshv-1kdy2C0@fwd33.aul.t-online.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: bdsZIQZXrhrAclRodaDlagBTWYD7fQOIHSqfqw3LQKguKyB8MqYeFOWVxV1b9XfwXA X-TOI-MSGID: eb48a5d2-aa6e-4457-a831-0e8ccf11c52b X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [PATCH] Kernel fixes for Cygwin 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: Tue, 22 Jul 2008 16:59:22 -0000 Bean wrote: > On Mon, Jul 21, 2008 at 6:33 PM, Christian Franke > wrote: > >> Hi, >> >> due to the complexity of PE, a stand-alone converter may likely be >> larger than the ~680 LoC converter I already offered here. It was >> rejected, see this thread: >> http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00174.html >> >> > > Hi, > > I can't find the source code for your converter, perhaps you can repost it ? > > I did not post it in the original thread from 2007-11. It is actually a reduced version of objcopy with - stuff not necessary for object format conversion removed, - some functions from shared modules added to make it self-contained, - the fix for the pc-relative relocation added to It was intended as starting point to get rid of the hack in kern/i386/dl.c. The hard work is still done by BFD. > IMO, it's better to use our own tool, if it's not very complicated. I > learn this lesson when writing efi support for x86_64. The gnu-efi > toolchain can produce efi image, but it turns out to have some > limitation on relocation, and it's hard to fix. I end up modifying > grub-mkimage to support converting elf to pe32+. Relying on external > tool means we are at the mercy of them, it's annoying when they have > issue, as we can't expect upstream to fix it soon. > > Yes, an own tool is probably best in the long term. But such a tool will be likely not available for GRUB 1.97 tarball release. Christian