Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GlBDi-00075z-Cr for mharc-grub-devel@gnu.org; Fri, 17 Nov 2006 16:25:58 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GlBDg-00072u-QC for grub-devel@gnu.org; Fri, 17 Nov 2006 16:25:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GlBDd-0006uB-0f for grub-devel@gnu.org; Fri, 17 Nov 2006 16:25:55 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlBDc-0006tl-N2 for grub-devel@gnu.org; Fri, 17 Nov 2006 16:25:52 -0500 Received: from [64.233.162.197] (helo=nz-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GlBDc-0003pV-H8 for grub-devel@gnu.org; Fri, 17 Nov 2006 16:25:52 -0500 Received: by nz-out-0102.google.com with SMTP id r28so589170nza for ; Fri, 17 Nov 2006 13:25:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=YkHbPsn0rpnI3TUYVKL06WzQuuvxBZPkqDCWKDvFwDYXzlKuUrrDXyixNBqgVfNyhX764jIFKNKOhozy8BVoBQeKgpJaPdVnBM6RUCuOhHncRRTjH8yJEFFcP18hj+a1u/ROU+sFgviGs2fK126Edu3Gx5V1ncMDmoDawi8FAv4= Received: by 10.65.20.15 with SMTP id x15mr3143300qbi.1163798751052; Fri, 17 Nov 2006 13:25:51 -0800 (PST) Received: from ?10.66.69.62? ( [131.193.225.77]) by mx.google.com with ESMTP id e16sm5094648qba.2006.11.17.13.25.50; Fri, 17 Nov 2006 13:25:50 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <1163797845.20484.20.camel@basalt> References: <1163797845.20484.20.camel@basalt> Content-Type: multipart/alternative; boundary=Apple-Mail-6-808054170 Message-Id: From: "Andrei E. Warkentin" Date: Fri, 17 Nov 2006 15:27:27 -0600 To: The development of GRUB 2 X-Mailer: Apple Mail (2.752.2) Subject: Re: multiboot2: remove "a.out kludge" requirement 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, 17 Nov 2006 21:25:57 -0000 --Apple-Mail-6-808054170 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed How about having a custom e_type for ELF images booted by GRUB? Something in the range between ET_LOOS and ET_HIOS (the OS specific types). This way one could avoid the Multiboot header in ELF, as the file would itself would identify self as GRUB-bootable or not. Also... I am not familiar with the module architecture in GRUB2 (whether mods are ET_REL or ET_DYN), but having a custom type for those would sure simplify those code paths too. Andrei Evgenievich Warkentin andrey.warkentin@gmail.com Cell: (+1) (847) 321-15-55 On 17.11.2006, at 15:10, Hollis Blanchard wrote: > One requirement listed for multiboot2 was that ELF headers should be > ignored, because NetBSD was setting their ELF addresses incorrectly. > This has now been fixed (see > http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=32865), so > I've > removed that requirement. > > ELF headers tell you where to load an executable far better than the > kludge, so it really doesn't make sense to ignore ELF. > > -Hollis > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --Apple-Mail-6-808054170 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-5
How about having a = custom e_type for ELF images booted by GRUB? Something in the range = between ET_LOOS and ET_HIOS (the OS specific types). This way one could = avoid the Multiboot header in ELF, as the file would itself would = identify self as GRUB-bootable or not.=A0

Also...
I am not = familiar with the module architecture in GRUB2 (whether mods are ET_REL = or ET_DYN), but having a custom type for those would sure simplify those = code paths too.=A0

Andrei = Evgenievich Warkentin
andrey.warkentin@gmail.com<= /DIV>
Cell: (+1) (847) 321-15-55


On = 17.11.2006, at 15:10, Hollis Blanchard wrote:

One requirement listed for multiboot2 was that ELF = headers should be
ignored, because NetBSD was = setting their ELF addresses incorrectly.
This has = now been fixed (see
removed that = requirement.

ELF headers tell you where to load an executable far = better than the
kludge, so it really doesn't = make sense to ignore ELF.

-Hollis



Grub-devel mailing list
=

= --Apple-Mail-6-808054170--