grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms


From: Marco Gerards
Subject: Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms
Date: Thu, 31 Jan 2008 09:48:51 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Pavel Roskin <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]