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, geninit.sh does half of what you want already. -- 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 /.) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel