Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GlCIq-0004P2-Kh for mharc-grub-devel@gnu.org; Fri, 17 Nov 2006 17:35:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GlCIo-0004Ms-AK for grub-devel@gnu.org; Fri, 17 Nov 2006 17:35:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GlCIn-0004M1-Dx for grub-devel@gnu.org; Fri, 17 Nov 2006 17:35:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlCIn-0004Li-4r for grub-devel@gnu.org; Fri, 17 Nov 2006 17:35:17 -0500 Received: from [64.233.162.193] (helo=nz-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GlCIm-0001SG-MA for grub-devel@gnu.org; Fri, 17 Nov 2006 17:35:16 -0500 Received: by nz-out-0102.google.com with SMTP id r28so597868nza for ; Fri, 17 Nov 2006 14:35:16 -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=dcasx7/BwGL0bqD4hhHp9yAzetN0Ygu+rRFTxxBOp+WRtv0sNL/4tR76EHy/DOnZNa/oQhPwUMYe+T6qmN0LyBE17zB0/I2DE3cInwH5mvh1lXqSZqGNcH/f1+RQOK+wQ2JRegULQn9FBMmUiX4iB2jtoOUBk3SJwjNYbjlNAgs= Received: by 10.65.218.12 with SMTP id v12mr3262773qbq.1163802910433; Fri, 17 Nov 2006 14:35:10 -0800 (PST) Received: from ?192.168.198.55? ( [69.219.51.131]) by mx.google.com with ESMTP id e15sm5189096qbe.2006.11.17.14.35.09; Fri, 17 Nov 2006 14:35:10 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <1163800899.20484.42.camel@basalt> References: <1163797845.20484.20.camel@basalt> <1163800899.20484.42.camel@basalt> Content-Type: multipart/alternative; boundary=Apple-Mail-10-812212996 Message-Id: From: "Andrei E. Warkentin" Date: Fri, 17 Nov 2006 16:36:46 -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 22:35:18 -0000 --Apple-Mail-10-812212996 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed No, I think Okuji mentioned that he didn't want to omit the Multiboot header out of the possibility of not registering the Multiboot header's presence if it is past the 8K mark (i.e. corrupt multiboot kernel). With a custom e_type you could be sure it's really a Multiboot kernel or not... and not ever be concerned with corrupt files with the header past 8K. Andrei Evgenievich Warkentin andrey.warkentin@gmail.com Cell: (+1) (847) 321-15-55 On 17.11.2006, at 16:01, Hollis Blanchard wrote: > On Fri, 2006-11-17 at 15:27 -0600, Andrei E. Warkentin wrote: >> 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. > > Why would we need a custom e_type? We know how to load ELF; we can > already omit the multiboot header. > > Are you worried about a user accidentally running "multiboot /bin/ls"? > I'm 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. > > How would it simplify the code? > > (Modules are ET_REL, for the record.) > > -Hollis > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --Apple-Mail-10-812212996 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-5 No, I think Okuji mentioned that = he didn't want to omit the Multiboot header out of the possibility of = not registering the Multiboot header's presence if it is past the 8K = mark (i.e. corrupt multiboot kernel).

With a custom e_type you = could be sure it's really a Multiboot kernel or not... and not ever be = concerned with corrupt files with the header past = 8K.=A0

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


On = 17.11.2006, at 16:01, Hollis Blanchard wrote:

On Fri, 2006-11-17 at 15:27 -0600, Andrei E. = Warkentin wrote:
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

Why = would we need a custom e_type? We know how to load ELF; we can
already omit the multiboot header.

Are you = worried about a user accidentally running "multiboot /bin/ls"?
I'm not... :)

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
=

How would it simplify the code?

(Modules = are ET_REL, for the record.)

-Hollis



Grub-devel mailing list
=

= --Apple-Mail-10-812212996--