From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GlBmh-0003S9-8w for mharc-grub-devel@gnu.org; Fri, 17 Nov 2006 17:02:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GlBmf-0003QC-IQ for grub-devel@gnu.org; Fri, 17 Nov 2006 17:02:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GlBme-0003PB-CR for grub-devel@gnu.org; Fri, 17 Nov 2006 17:02:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlBme-0003P0-7T for grub-devel@gnu.org; Fri, 17 Nov 2006 17:02:04 -0500 Received: from [32.97.182.145] (helo=e5.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 1GlBmd-0001pV-Qd for grub-devel@gnu.org; Fri, 17 Nov 2006 17:02:03 -0500 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e5.ny.us.ibm.com (8.13.8/8.12.11) with ESMTP id kAHM1xQ7010767 for ; Fri, 17 Nov 2006 17:01:59 -0500 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay04.pok.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id kAHM1mCx115304 for ; Fri, 17 Nov 2006 17:01:49 -0500 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id kAHM1mEo002707 for ; Fri, 17 Nov 2006 17:01:48 -0500 Received: from [9.53.41.42] (basalt.austin.ibm.com [9.53.41.42]) by d01av01.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id kAHM1mje002693 for ; Fri, 17 Nov 2006 17:01:48 -0500 From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: References: <1163797845.20484.20.camel@basalt> Content-Type: text/plain Date: Fri, 17 Nov 2006 16:01:38 -0600 Message-Id: <1163800899.20484.42.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: Fri, 17 Nov 2006 22:02:05 -0000 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