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.

-- 
Regards,
Pavel Roskin


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to