Subject: Re: Compiling NetBSD with another compiler.
To: De Zeurkous <firstname.lastname@example.org>
From: Bill Stouder-Studenmund <email@example.com>
Date: 10/14/2007 13:04:35
Content-Type: text/plain; charset=us-ascii
On Sat, Oct 13, 2007 at 03:38:55PM -0000, De Zeurkous wrote:
> >[no quote]
> One question -- why not modify the syscall entry code to handle
> if( compatmode =3D=3D COMPAT_16 ) return compat_stat16( path, sh ); // an=
How do you know what compat mode the application was built for? Thus how=20
do you know what the "compatmode" variable should be?
My understanding of how ELF is supposed to work is you aren't supposed to=
do things like this.
Also, it'd get really messy since it really might be if ((compatmode =3D=3D=
COMPAT_16) || (compatmode =3D=3D COMPAT_15)) and so on. That makes code mes=
and also puts a lot of compatability modes checking in the fast-path. What=
we've done makes the compiler just need to pick the right name at compile=
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)
-----END PGP SIGNATURE-----