[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The NetBSD kernel does not recognize yet the ABI id 4, so you'll need to enable execution of noteless ELF objects.
options EXEC_ELF_NOTELESS |
Unfortunately, that's not enough as the kernel wrongly recognizes the
executables as GNU/Linux binaries and tries to run them under the Linux
kernel emulation. Needless to say, this results in extremely weird
behavior, e.g, mmap
returning 0.
There are several possible solutions to this problem:
That's what we did. Besides, you don't want to run binary only software anyway, don't you?
#options COMPAT_LINUX |
In /usr/src/sys/compat/linux/arch/i386/linux_exec.h
remove the
definition of LINUX_GCC_SIGNATURE
. We didn't do that, but we
suspect it would have worked.
Add support for the new ABI ids to NetBSD. Look at
/usr/src/sys/kern/exec_conf.c
to see how it's done.
We'll do it ourselves, when there aren't any more important tasks, like getting the thing to work in the first place.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |