From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KKxfI-0007qM-Vk for mharc-grub-devel@gnu.org; Mon, 21 Jul 2008 11:51:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKxfG-0007o4-AH for grub-devel@gnu.org; Mon, 21 Jul 2008 11:51:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKxfE-0007mx-JL for grub-devel@gnu.org; Mon, 21 Jul 2008 11:51:05 -0400 Received: from [199.232.76.173] (port=36382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKxfE-0007mn-Cc for grub-devel@gnu.org; Mon, 21 Jul 2008 11:51:04 -0400 Received: from c60.cesmail.net ([216.154.195.49]:39586) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1KKxfD-0004HC-TJ for grub-devel@gnu.org; Mon, 21 Jul 2008 11:51:04 -0400 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 21 Jul 2008 11:51:02 -0400 Received: from [192.168.0.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id 24044618F22 for ; Mon, 21 Jul 2008 11:51:02 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <1216638178.8334.153.camel@localhost> References: <4883A568.10709@t-online.de> <1KKshv-1kdy2C0@fwd33.aul.t-online.de> <1216638178.8334.153.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1 Date: Mon, 21 Jul 2008 11:51:01 -0400 Message-Id: <1216655461.3460.28.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 8bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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: Mon, 21 Jul 2008 15:51:06 -0000 On Mon, 2008-07-21 at 13:02 +0200, Javier Martín wrote: > El lun, 21-07-2008 a las 12:33 +0200, Christian Franke escribió: > > due to the complexity of PE, a stand-alone converter may likely be > > larger than the ~680 LoC converter I already offered here. > Why do we even consider a PE->ELF converter? I think the easier way to > go would have the people building GRUB in cygwin (not exactly newbies) > to have an i386-pc-elf "cross compiler" built first, then use that for > the bootloader programs and the normal gcc for tools. Even a "naked" > (i.e. libraryless) cross compiler would work, since the bootloader part > of GRUB is does not need libs (in C terminology, it's "freestanding"). > That way, we are free from "objcopy bugs" or "BFD design limitations". Well, if we want users to recompile their toolchain first, it's too much to ask. Maybe we could treat ELF header like a multiboot header? That means that we write the header fields in the assembly language, substitute the necessary variables and ask objcopy to make a raw binary that would actually be an ELF file? We could actually do it for all platforms, so that we won't depend on the object file format. -- Regards, Pavel Roskin