Subject: Re: COMPAT_FREEBSD problem
To: Christos Zoulas <christos@zoulas.com>
From: None <collver1@attbi.com>
List: netbsd-help
Date: 11/19/2002 12:27:06
Ok, this also sounds good as far as I am concerned.

Thank you for your help,

Ben

On Tue, Nov 19, 2002 at 07:01:36PM +0000, Christos Zoulas wrote:
> ok then:
>         /*
> 	 * If a binary has a brand, make sure that it is "FreeBSD".
> 	 * Newer FreeBSD binaries have OSABI set to ELFOSABI_FREEBSD. This
> 	 * is arguably broken, but they seem to think they need it, for
> 	 * whatever reason. If the OSABI field is set, insist that it is
> 	 * ELFOSABI_FREEBSD.
> 	 */
>         if ((eh->e_ident[EI_BRAND] != '\0' &&
> 	    strcmp(&eh->e_ident[EI_BRAND], wantBrand) != 0) ||
> 	    (eh->e_ident[EI_OSABI] != 0 &&
> 	    eh->e_ident[EI_OSABI] != ELFOSABI_FREEBSD))
> 		return ENOEXEC;
> 
> 
> christos