From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GmEcK-00057O-Le for mharc-grub-devel@gnu.org; Mon, 20 Nov 2006 14:15:44 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmEcH-00053A-Nt for grub-devel@gnu.org; Mon, 20 Nov 2006 14:15:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmEc9-0004uw-44 for grub-devel@gnu.org; Mon, 20 Nov 2006 14:15:37 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmEc8-0004tz-Hf for grub-devel@gnu.org; Mon, 20 Nov 2006 14:15:32 -0500 Received: from [32.97.182.143] (helo=e3.ny.us.ibm.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GmEc7-0001zd-6z for grub-devel@gnu.org; Mon, 20 Nov 2006 14:15:31 -0500 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e3.ny.us.ibm.com (8.13.8/8.12.11) with ESMTP id kAKJFGaw030984 for ; Mon, 20 Nov 2006 14:15:16 -0500 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay02.pok.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id kAKJFGHZ295044 for ; Mon, 20 Nov 2006 14:15:16 -0500 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id kAKJFG89028200 for ; Mon, 20 Nov 2006 14:15:16 -0500 Received: from [9.53.41.42] (basalt.austin.ibm.com [9.53.41.42]) by d01av04.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id kAKJFGLX028193 for ; Mon, 20 Nov 2006 14:15:16 -0500 From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <3a73d3420611190226k23254d59vd3e6acb189a585be@mail.gmail.com> References: <1163797845.20484.20.camel@basalt> <3a73d3420611190226k23254d59vd3e6acb189a585be@mail.gmail.com> Content-Type: text/plain Date: Mon, 20 Nov 2006 13:14:59 -0600 Message-Id: <1164050099.32262.50.camel@basalt> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit 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: Mon, 20 Nov 2006 19:15:43 -0000 On Sun, 2006-11-19 at 10:26 +0000, Brano Zarnovican wrote: > On 11/17/06, Andrei E. Warkentin wrote: > > > > How about having a custom e_type for ELF images booted by GRUB? Something in > > Guys at Xen solved it nicely with custom ELF section. Somewhere in > your OS code you create a section with specific name, bootloader will > be looking for. For multiboot it might look like: > > .section __multiboot_v2 > .long MAGIC_THIS > .long FLAGS_THAT Sections are for linkers; segments are for loaders. GRUB loads ELF files by segment, which is why I suggested a PT_LOAD segment. > Header position is exactly defined in ELF which Grub already speaks. > It does not need to be in first 8kB. The downside is that it will make > multiboot ELF-only. That is a non-starter I'm afraid. Not that I care much about non-ELF kernels personally, but we must support them. Of course we could simply say that some other method is needed for non-ELF files. -Hollis