Subject: Re: COMPAT_FREEBSD problem
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-help
Date: 11/19/2002 16:40:51
In article <20021119151416.GA267@glen.takilma.net>,
 <collver1@attbi.com> wrote:
>Thank you for your help.
>
>1. ktrace it
>
>   282 ktrace   execve("./example", 0xbfbfd810, 0xbfbfd818) Err#8 ENOEXEC
>
>2. add debugging printfs to exec_elf32.c
>
>It fails with ENOEXEC in exec_elf32.c at ELFNAME2(exec,makecmds) at the
>"goto bad;" in the following code snippet.  I am not familiar with this
>code, do you have time to give any more hints?
>

Excellent. Now we need to find where the freebsd probe function goes south.
Add some more debugging in /usr/src/sys/compat/freebsd/freebsd_exec_elf32.c;
something might be wrong with the branding detection is my guess.

christos