grub-devel  

Re: [PATCH] load FreeBSD ELF modules

Vladimir 'phcoder' Serbinenko
Sun, 21 Jun 2009 09:39:00 -0700

Committed

On Sat, Jun 13, 2009 at 12:23 PM, Vladimir 'phcoder' Serbinenko <
phco...@gmail.com> wrote:

> Hello
>
> On Fri, Jun 12, 2009 at 8:14 PM, Vladimir 'phcoder'
> Serbinenko<phco...@gmail.com> wrote:
> > Hello. Unlike some other types of modules (mfsroot, splash, ..)
> > FreeBSD relies on ELF modules being partially parsed by booter. So I
> > added new function freebsd_module_elf specifically for loading elf
> > modules. I also factorised freebsd_module_add_meta to do only parts
> > common to all types of modules and moved module-specific parts to
> > corresponding functions. I tested it only with 64-bit kernel. It works
> > for 64-bit kernels but doesn't work for 32-bit ones. Dumps show that
> > 32-bit loader uses quite different format. I'll investigate the issue
> >
> I figured 32-bit modules out. It required loading additional elements
> like _DYNAMIC for both kernel and modules.
> > --
> > Regards
> > Vladimir 'phcoder' Serbinenko
> >
>
>
>
> --
> Regards
> Vladimir 'phcoder' Serbinenko
>



-- 
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel