Subject: Re: Using Etherboot ELF/FreeBSD loader to netboot ELF/NetBSD
To: Wojciech Puchar <>
From: Bill Studenmund <>
List: tech-kern
Date: 02/27/2003 11:02:00
On Thu, 27 Feb 2003, Wojciech Puchar wrote:

> how to detect if ELF image is NetBSD or FreeBSD? (what to check in ELF
> header)
> i'm not good in ELFs ;)

I think the best thing to do would be to look for a .note.netbsd.ident
section. All of our userland programs have them, though it looks like my
kernels don't. So you'd need to add that to the kernel build, and then
look for it.

We probably should start adding a, "I'm a NetBSD kernel," note in order to
help non-NetBSD booters do the right thing.

Take care,