On Mon, Nov 17, 2008 at 12:53:10PM -0700, M. Warner Losh wrote:
> In message: <[EMAIL PROTECTED]>
>             Kostik Belousov <[EMAIL PROTECTED]> writes:
> : diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
> : index f4e4614..114e0ba 100644
> : --- a/sys/kern/imgact_aout.c
> : +++ b/sys/kern/imgact_aout.c
> : @@ -82,7 +82,17 @@ struct sysentvec aout_sysvec = {
> :     .sv_copyout_strings     = exec_copyout_strings,
> :     .sv_setregs     = exec_setregs,
> :     .sv_fixlimit    = NULL,
> : -   .sv_maxssiz     = NULL
> : +   .sv_maxssiz     = NULL,
> : +   .sv_flags       = SV_NATIVE | SV_AOUT |
> : +#if defined(__i386__)
> : +   SV_IA32 | SV_ILP32
> : +#elif defined(__powerpc__) || defined(__mips__)
> : +   SV_ILP32
> : +#elif defined(__ia64__) || defined(__sparc64__) || defined(__amd64__)
> : +   SV_LP64
> : +#else
> : +#error Choose SV_XXX flags for the platform
> : +#endif
> :  };
> 
> I didn't think we supported aout for mips.  Also, arm is missing from
> the list :-)

Thanks.
In fact, aout works for i386 (and pc98) only. I changed the #ifdef to the
following:

diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index f4e4614..78055f7 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -82,7 +82,13 @@ struct sysentvec aout_sysvec = {
        .sv_copyout_strings     = exec_copyout_strings,
        .sv_setregs     = exec_setregs,
        .sv_fixlimit    = NULL,
-       .sv_maxssiz     = NULL
+       .sv_maxssiz     = NULL,
+       .sv_flags       = SV_NATIVE | SV_AOUT |
+#if defined(__i386__)
+       SV_IA32 | SV_ILP32
+#else
+#error Choose SV_XXX flags for the platform
+#endif
 };
 
 static int

Attachment: pgpUP5PNy01Kc.pgp
Description: PGP signature

Reply via email to