Subject: Re: NetBSD booting NetBSD on a TS-7xxx
To: Toru Nishimura <firstname.lastname@example.org>
From: Richard Earnshaw <Richard.Earnshaw@buzzard.freeserve.co.uk>
Date: 12/05/2006 08:44:33
On Tue, 05 Dec 2006 12:28:58 +0900, "Toru Nishimura" wrote:
> Jesse Off wrote;
> > I recently wrote a program to allow NetBSD to boot other OS' from within
> > NetBSD itself.
> [ ... snip ... ]
> > I'll probably implement arbitrary ELF file loading sometime this month
> > (right now it only works with raw images)
> As a side note, it's possible to distinguish NetBSD ELF from Linux 2.4 or 2.6
> looking at ELF "private flags" field.
> In Little Endian short, offset 0x24 of kernel ELF header differs as;
> - NetBSD 0x0602
> - Linux 2.4 0x0002
> - Linux 2.6 0x0202
This isn't a reliable test. Linux objects and executables built to the
EABI will show a completely different value here (in e_flags) and that
field doesn't contain enough information to determine the OS.