Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKFQR-00078n-0r for mharc-grub-devel@gnu.org; Wed, 30 Jan 2008 11:04:35 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKFQP-00078J-4f for grub-devel@gnu.org; Wed, 30 Jan 2008 11:04:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKFQI-00076y-HQ for grub-devel@gnu.org; Wed, 30 Jan 2008 11:04:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKFQI-00076v-FS for grub-devel@gnu.org; Wed, 30 Jan 2008 11:04:26 -0500 Received: from smtp8-g19.free.fr ([212.27.42.65]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKFQH-0000Pa-Hw for grub-devel@gnu.org; Wed, 30 Jan 2008 11:04:26 -0500 Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id 7525717F588; Wed, 30 Jan 2008 17:04:23 +0100 (CET) Received: from imp6-g19.free.fr (imp6-g19.free.fr [212.27.42.6]) by smtp8-g19.free.fr (Postfix) with ESMTP id 61AE317F55F; Wed, 30 Jan 2008 17:04:23 +0100 (CET) Received: by imp6-g19.free.fr (Postfix, from userid 33) id 54028427E; Wed, 30 Jan 2008 17:04:18 +0100 (CET) Received: from dhcp-guest.act-europe.fr (dhcp-guest.act-europe.fr [212.99.106.127]) by imp.free.fr (IMP) with HTTP for ; Wed, 30 Jan 2008 17:04:18 +0100 Message-ID: <1201709058.47a0a0021e1f3@imp.free.fr> Date: Wed, 30 Jan 2008 17:04:18 +0100 From: tgingold@free.fr To: Robert Millan References: <20080128160905.GA2739@saphi> <20080128165504.GB9715@thorin> <20080129051252.GA2504@saphi> <20080129095922.GA31756@thorin> <1201602926.479f016e27f08@imp.free.fr> <20080129113219.GA22894@thorin> <1201611409.479f22918bed6@imp.free.fr> <20080129131934.GB26291@thorin> <871w80adut.fsf@xs4all.nl> <20080130055734.GD4665@saphi> <20080130132559.GA15395@thorin> In-Reply-To: <20080130132559.GA15395@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.8 X-Originating-IP: 212.99.106.127 Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Cc: tgingold@free.fr, The development of GRUB 2 Subject: Re: IA64 port 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: Wed, 30 Jan 2008 16:04:33 -0000 Quoting Robert Millan : > On Wed, Jan 30, 2008 at 06:57:34AM +0100, Tristan Gingold wrote: > > On Tue, Jan 29, 2008 at 03:46:50PM +0100, Marco Gerards wrote: > > > Robert suggested some changes. I also noticed in the discussion th= at > > > you didn't follow common practise (like an existing grub-mkimage > > > implementation). Personally, as maintainer, I am against maintaini= ng > > > two different approaches of the same problem. It costs us time to > > > maintain this and both case have separate bugs. So I rather see th= e > > > code shared, one way or the other. To safe time, it might save you > > > some work if you initiate a discussion about this. > > > > The facts: > > > > util/i386/efi/grub-mkimage.c and elf2pe.c do almost the same thing: > converting > > an ELF file to a PE file. But: > > > > * the input format is slightly different (Elf32 vs Elf64) > > * the output format is slightly different (PE vs PE+) > > * the relocating work is different (x86 vs ia64, Rel vs Rela) > > * The entry point is a descriptor on ia64 > > * grub-mkimage.c can insert modules in a section. > > Sounds like they're very different. Maybe it'd be fine to just change > the name and user interface from elf2pe.c to util/ia64/efi/grub-mkimage= .c ? > > What do you think? Fine for me.