Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GmFho-0003c2-P8 for mharc-grub-devel@gnu.org; Mon, 20 Nov 2006 15:25:28 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmFhm-0003Z8-Qz for grub-devel@gnu.org; Mon, 20 Nov 2006 15:25:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmFhj-0003VE-R2 for grub-devel@gnu.org; Mon, 20 Nov 2006 15:25:26 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmFhj-0003Uy-NB for grub-devel@gnu.org; Mon, 20 Nov 2006 15:25:23 -0500 Received: from [212.27.42.36] (helo=smtp6-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GmFhh-000154-Mu for grub-devel@gnu.org; Mon, 20 Nov 2006 15:25:23 -0500 Received: from saphi (boi78-1-82-232-198-173.fbx.proxad.net [82.232.198.173]) by smtp6-g19.free.fr (Postfix) with ESMTP id 77A5543B4B for ; Mon, 20 Nov 2006 21:21:47 +0100 (CET) Received: from gingold by saphi with local (Exim 3.36 #1 (Debian)) id 1GmFgw-0000fY-00 for ; Mon, 20 Nov 2006 21:24:34 +0100 Date: Mon, 20 Nov 2006 21:24:34 +0100 To: The development of GRUB 2 Message-ID: <20061120202434.GA2519@saphi> References: <1163797845.20484.20.camel@basalt> <3a73d3420611190226k23254d59vd3e6acb189a585be@mail.gmail.com> <20061119165507.GA2854@saphi> <1164049987.32262.47.camel@basalt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1164049987.32262.47.camel@basalt> User-Agent: Mutt/1.5.9i From: Tristan Gingold 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 20:25:27 -0000 On Mon, Nov 20, 2006 at 01:13:07PM -0600, Hollis Blanchard wrote: > On Sun, 2006-11-19 at 17:55 +0100, Tristan Gingold wrote: > > On Sun, Nov 19, 2006 at 10:26:54AM +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 > > > > > But using notes make it almost impossible to use a compressed image. > > (This is almost a requirement for ia64, but I also think ia64 does not > > require these flags). > > I don't see how. GRUB must already extract .elf.gz files to read the ELF > header to load the executable. Generally the first 1kB (or 2 doesn't really matter) are extracted. They should contain the header and the segment table. Then the remaining is read in order. But if a special section (such as .note) must be read before the remaining of the file, things become more complex. Tristan.