From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKV4q-0005q3-BT for mharc-grub-devel@gnu.org; Thu, 31 Jan 2008 03:47:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKV4o-0005oS-4q for grub-devel@gnu.org; Thu, 31 Jan 2008 03:47:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKV4l-0005mK-Ot for grub-devel@gnu.org; Thu, 31 Jan 2008 03:47:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKV4l-0005m9-Eo for grub-devel@gnu.org; Thu, 31 Jan 2008 03:47:15 -0500 Received: from smtp-vbr8.xs4all.nl ([194.109.24.28]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKV4l-0004sc-0J for grub-devel@gnu.org; Thu, 31 Jan 2008 03:47:15 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr8.xs4all.nl (8.13.8/8.13.8) with ESMTP id m0V8lDRF049706 for ; Thu, 31 Jan 2008 09:47:13 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <1201490732.20392.15.camel@rd> <20080128090910.GC13368@thorin> <20080128093028.GA29689@thorin> <1201527891.15848.6.camel@dv> <20080128162900.GA9715@thorin> <877ihtc9h4.fsf@xs4all.nl> <1201729345.8103.36.camel@dv> <20080130220320.GB6731@thorin> <1201731303.8103.41.camel@dv> <20080130222628.GB7679@thorin> <1201733294.8103.67.camel@dv> Mail-Copies-To: mgerards@xs4all.nl Date: Thu, 31 Jan 2008 09:48:51 +0100 In-Reply-To: <1201733294.8103.67.camel@dv> (Pavel Roskin's message of "Wed, 30 Jan 2008 17:48:14 -0500") Message-ID: <87hcguidn0.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms 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: Thu, 31 Jan 2008 08:47:18 -0000 Pavel Roskin writes: > On Wed, 2008-01-30 at 23:26 +0100, Robert Millan wrote: >> > I only said "I assume" because there is a subtle difference between a >> > "valid ELF file" and "indistinguishable for kernel.elf". It should be >> > valid and acceptable to the OpenFirmware, and the later is a black box >> > to me. >> >> Uhm.. I wonder what'd happen if you pre-link all the stuff into kernel.elf. > > I tried to prelink "apple" and "hfs" by changing the makefiles. The > functionality wasn't available. It makes sense, because the core > doesn't know that the modules are linked. The modules are never > registered with the core. > > It would be nice to have some linker trick to tell the code about the > prelinked modules. That could make grub-mkimage a very thin wrapper > around "ld -r", perhaps written as a shell script. We have a trick for grub-emu, a list of init functions that have to be called is created, a function that does this is created and it is called when grub-emu is started. You could do this manually when testing. -- Marco