From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JA8Dd-0008LG-6h for mharc-grub-devel@gnu.org; Wed, 02 Jan 2008 13:21:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JA8Db-0008KE-5x for grub-devel@gnu.org; Wed, 02 Jan 2008 13:21:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JA8Da-0008Jw-2Z for grub-devel@gnu.org; Wed, 02 Jan 2008 13:21:30 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JA8DZ-0008Jl-QU for grub-devel@gnu.org; Wed, 02 Jan 2008 13:21:29 -0500 Received: from c60.cesmail.net ([216.154.195.49]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1JA8DZ-0002YY-Lq for grub-devel@gnu.org; Wed, 02 Jan 2008 13:21:29 -0500 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 02 Jan 2008 13:21:28 -0500 Received: from [192.168.1.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id 56C37618FE3; Wed, 2 Jan 2008 13:21:28 -0500 (EST) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <20071226080024.GC9681@thorin> References: <20071216153046.GA11912@thorin> <87prx5nwd5.fsf@xs4all.nl> <1197915991.2541.3.camel@dv> <20071220173607.GA20508@thorin> <20071226080024.GC9681@thorin> Content-Type: text/plain Date: Wed, 02 Jan 2008 13:21:27 -0500 Message-Id: <1199298087.3510.8.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 (2.12.2-2.fc8) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Robert Millan Subject: Re: embedding data in ELF (Re: moving ata initialisation to a command) 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: Wed, 02 Jan 2008 18:21:31 -0000 On Wed, 2007-12-26 at 09:00 +0100, Robert Millan wrote: > On Thu, Dec 20, 2007 at 06:36:07PM +0100, Robert Millan wrote: > > > > I'd prefer to support embedding filesystems in core.img instead. This > > solves the problem for every situation instead of just PC boot media > > (e.g. LinuxBIOS ELF payload image). > > Btw, any ELF wizard around? I wonder if ELF has any provisions for embedding > raw data to it. You can add arbitrary sections, just make sure to avoid reserved names: http://www.linux-foundation.org/spec/book/ELF-generic/ELF-generic/specialsections.html objcopy supports --add-section, which can add sections from files. Good starting point for information about ELF: http://en.wikipedia.org/wiki/Executable_and_Linking_Format -- Regards, Pavel Roskin