[Top][All Lists]

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

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

From: Robert Millan
Subject: Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms
Date: Thu, 31 Jan 2008 11:47:59 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Jan 30, 2008 at 05:48:14PM -0500, Pavel Roskin wrote:
> 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.

You can easily work around that by removing the GRUB_MOD_INIT() wrap and
calling the functions manually.

However, to determine if the "CLAIM failed" problem also affects "sane" elven,
you don't need to initialize these modules, just link them in.

> 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.

Sure it would.  Shouldn't be too hard, does half of what you want

Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)

reply via email to

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