linker weirdness for MIPS kernel?

Jayachandran C. c.jayachandran at gmail.com
Thu Mar 31 21:18:02 UTC 2011


On Tue, Mar 29, 2011 at 10:31 PM, Radha Mohan <mohun106 at gmail.com> wrote:
> Hi JC,
>
> Incidentally I am also trying to load modules under FreeBSD on my MIPS platform,
> but I am getting following error.
>
> # /sbin/kldload -v ext2fs
> linker_load_file: Unsupported file type
> kldload:can't load ext2fs: Exec format error
>
> For me all the modules give me this error.
>
> From what I understood going through the module loading code is the
> linker_load_file()
> function is trying for all the registered classes (elf64_obj and elf64
> in my case). But the
> relocatable header type is handled in the link_elf_obj.c only and not
> link_elf.c .
>
> There is still some support lacking for the mips64 relocation in terms
> of getting "mapbase"
> (currently its taking only amd64 architecture into consideration)and
> handling addend (ELF_RELOC_RELA),
> R_MIPS_64, R_MIPS_HIGHER and R_MIPS_HIGHEST.

Is this on the 64bit kernel or on the 32bit version?  I don't use kernel
modules in our XLR setup.

I am a bit overloaded now with other stuff, but if you have any patches
 to fix this, I can help test and merge them...

JC.


More information about the freebsd-mips mailing list