Date: Thu, 31 Mar 2011 14:18:01 -0700 From: "Jayachandran C." <c.jayachandran@gmail.com> To: Radha Mohan <mohun106@gmail.com> Cc: Adrian Chadd <adrian.chadd@gmail.com>, freebsd-mips@freebsd.org Subject: Re: linker weirdness for MIPS kernel? Message-ID: <AANLkTinj5%2B2eojzJao7TYnX%2BV6s5AofwgGY_Ua3m79d3@mail.gmail.com> In-Reply-To: <AANLkTikpWsdEjyzzpMfR3CqYT5NG2b4H7dpZGTzwghr7@mail.gmail.com> References: <AANLkTik5Xfk3oPqZVj%2BTCA2b4B53_=xWdZb0g98GPYcD@mail.gmail.com> <AANLkTimPoLbZ=4TNmeW7S6=pMCVGGki1TeYa4sA0cVFP@mail.gmail.com> <AANLkTikpWsdEjyzzpMfR3CqYT5NG2b4H7dpZGTzwghr7@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 29, 2011 at 10:31 PM, Radha Mohan <mohun106@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinj5%2B2eojzJao7TYnX%2BV6s5AofwgGY_Ua3m79d3>