Re: Crosscompiling NetBSD for Fonera not working with HEAD?

Fredrik Pettai <[email protected]> Wed, 1 Jul 2009 21:28:43 +0200
Newsgroups gmane.os.netbsd.ports.evbmips
Message-ID <[email protected]>
On Jul 1, 2009, at 10:50 AM, David Holland wrote:
> On Wed, Jul 01, 2009 at 12:22:22AM +0200, Fredrik Pettai wrote:
>
> Since the broken address is also in t9, it looks like it's gotten a
> bogus function pointer from the GOT. Which is probably because the
> kernel doesn't have one. Kernel bits are supposed to be compiled with
> -mno-abicalls, which is normally handled by Makefile.MIPS.

Should I try it manually in CFLAGS?

> Is there something involved that's compiled with custom CFLAGS?

Not that I've set. /etc/mk.conf is empty, and no CFLAGS variable is set.

> (Finding out where ra is pointing like I suggested in the PR will
> probably identify it.)


I updated the PR with the output of objdump -d netbsd and disassembly  
of the function which contained 8006a524.
The kernel is compiled (standard) with makeoptions DEBUG="-g", but I'm  
not familiar with how to accomplish this, (which you wrote in the PR).  
"If it's a kernel with debugging symbols you can get it from gdb"

Is it the same thing?

Re,
/P