Subject: Re: Some feedback about netbsd on indigo --> part I: a kernel panic
To: Martin Husemann <martin@duskware.de>
From: Pierre Letouzey <Pierre.Letouzey@pps.jussieu.fr>
List: port-sgimips
Date: 11/02/2006 18:27:04
On Wed, Nov 01, 2006 at 11:43:27PM +0100, Martin Husemann wrote:
> On Wed, Nov 01, 2006 at 07:40:15PM +0100, Martin Husemann wrote:
> > FWIW: I can reproduce the crash with a -current GENERIC_3x kernel.
> > I'm investigating.
>
> src/sys/arch/mips/mips/syscall.c rev. 1.30 fixes it - your test program
> now dumps core, as the syscall number is passed wrong (for irix emulation).
>
> I suggest, if you insist on avoiding C startup routines and libc, to prepare
> an object file with the proper ELF note section to mark the binary as
> a NetBSD one and link that with your assembler sources.
>
> Martin
Indeed, with a correctly crafted section .note.netbsd.ident, my
non-PIC programs are now working correctly.
Thanks a lot for the quick response and fix.
Pierre Letouzey
PS: Just in case it might interest somebody else someday, here's
the details of the section i'm now using:
.section ".note.netbsd.ident", "a"
.word 7
.word 4
.word 1
.asciiz "NetBSD"
.align 2
.word 0x11E1A6E8
.align 2