From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KKtAN-0003I8-5W for mharc-grub-devel@gnu.org; Mon, 21 Jul 2008 07:02:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKtAL-0003I0-KX for grub-devel@gnu.org; Mon, 21 Jul 2008 07:02:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKtAK-0003Hc-3J for grub-devel@gnu.org; Mon, 21 Jul 2008 07:02:53 -0400 Received: from [199.232.76.173] (port=45352 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKtAJ-0003HZ-Uo for grub-devel@gnu.org; Mon, 21 Jul 2008 07:02:51 -0400 Received: from ug-out-1314.google.com ([66.249.92.170]:63222) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KKtAJ-0005Dx-8V for grub-devel@gnu.org; Mon, 21 Jul 2008 07:02:51 -0400 Received: by ug-out-1314.google.com with SMTP id l31so244024ugc.48 for ; Mon, 21 Jul 2008 04:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=fc5BQ5XrSuvzcnevkcQe9f8QdUUoJifdVR7GHp/NtA4=; b=d5mqJA9Dqzp7YRzOwvHHFVSLnW8rA2BvaTNCXR2qyj+Gmd37NLWbjkwVM8QZ9nxvYB XTJtXl4ekkj9iW4ywcCitO1in0JDqYzKhzA+Zh/Pxibhw4/YA4/rtGBPU+NDfyw8SX9P lTWTW6vg9k6GYHFFPfwCE6LIUKeJX2Cmm5FLA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=YGNkVCOo9zY8bTgliVtp7IK/9fsRKlzqs27haC7b4w3fInk23OWF3b9TVSmuZPC4qL rqz8MjKwCGwTCibv3wTZEpaJ0rOXtBBLCWP8jNXxQ9KM1+eG69yNDmWO5vZG9xUlZyv/ M71sxRQJB7xeDa2WzK/dOXalWq0thAXulDSHQ= Received: by 10.67.15.15 with SMTP id s15mr1529208ugi.28.1216638170076; Mon, 21 Jul 2008 04:02:50 -0700 (PDT) Received: from ?192.168.1.100? ( [213.37.137.93]) by mx.google.com with ESMTPS id i39sm3744109ugd.75.2008.07.21.04.02.48 (version=SSLv3 cipher=RC4-MD5); Mon, 21 Jul 2008 04:02:49 -0700 (PDT) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: <1KKshv-1kdy2C0@fwd33.aul.t-online.de> References: <4883A568.10709@t-online.de> <1KKshv-1kdy2C0@fwd33.aul.t-online.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-MkzGmoNBPtPRZNoM03Hk" Date: Mon, 21 Jul 2008 13:02:58 +0200 Message-Id: <1216638178.8334.153.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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 11:02:53 -0000 --=-MkzGmoNBPtPRZNoM03Hk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable El lun, 21-07-2008 a las 12:33 +0200, Christian Franke escribi=C3=B3: > Bean wrote: > > BTW, if you have time, you can consider writing a tool that convert pe > > to elf directly, thus avoiding objcopy altogether. This shouldn't be > > too difficult, you can take a look at util/i386/efi/grub-mkimage.c, > > which does exactly the opposite, converting elf to pe32. >=20 > 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". This scheme is kinda like what's done with x86_64-pc-linux, with the difference that in that case we use the same gcc for both "host" and "target" by adding -m32 to the latter, but it's=EF=BB=BF essentially the sa= me concept. Habbit --=-MkzGmoNBPtPRZNoM03Hk Content-Type: application/pgp-signature; name=signature.asc Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQIVAwUASIRs4qSl+Fbdeo72AQKzEw//QA4NjolstMJRL8yx9mpeFRe0ZQtxAVgZ fJW66k7Ai1X2zfqY2gmRZXqv8OzW55fcT4nLZPrb/6SQeJPh88q0hqXMA/8T+fbd KT8nvkIktiIjNeklWoBuomzU8Jeh4KRs3iRItYha/sJ2DjCarHT3uxuGs7SDfcJ9 tMjWwqaw7DfX0q9g7lkB5gIwHYf1hQ1OJQTJZoFZqlhoeGMMAs8FkgAWVwzSF/1U x+4ZYmljvySV/PHn0d+rJFYFPUI+6QYwE6lPnVISuBnY+i4B+7xsrNnqVMcERF0N xDVQa3jlkV3fO4qQNzxK6+RKpKuxqPY+xB2Bw4HutOlkwZsM+FkV1dIqxf88uKuM 9YMT1TnSvpnPgDP5a5ACtzkzjc17du/7fWfBwcb/Wf/Da5QRo7r9nVxdr0Ph0wpc fOlrphVpFRB2+gya+ClyrRW0I7LsF2z/sBKyH4sgKoT7gphzX4BWJalO9dvsPR8+ X+XxWsfgkI0+U2dw49an6jP882myPnWN2p0g4mGFQ4hxQung00nhG+QWtxDtld9X yWd7E0ixOX6QqcIwsbITyrl+hZe+Snbn9BH/Mvcos/JpqszUATtIGaj8XmNJM+OY Th9/WTY7QcuFS+LvQJ3pAJ3Ds1/yDfTGsT6pZN1pQijBXMFILodjYDEEnpPW8OCc 7nWuPj9yd/8= =xq3Q -----END PGP SIGNATURE----- --=-MkzGmoNBPtPRZNoM03Hk--