Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 a.out binaries can't handle topdown.



details:   https://anonhg.NetBSD.org/src/rev/989e724eed20
branches:  trunk
changeset: 326304:989e724eed20
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 25 05:15:43 2014 +0000

description:
a.out binaries can't handle topdown.
Now 1.0 binaries work correctly on NetBSD-current.

diffstat:

 sys/compat/netbsd32/netbsd32_exec_aout.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 1864751291ef -r 989e724eed20 sys/compat/netbsd32/netbsd32_exec_aout.c
--- a/sys/compat/netbsd32/netbsd32_exec_aout.c  Sat Jan 25 05:15:05 2014 +0000
+++ b/sys/compat/netbsd32/netbsd32_exec_aout.c  Sat Jan 25 05:15:43 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_exec_aout.c,v 1.25 2010/04/23 15:19:20 rmind Exp $    */
+/*     $NetBSD: netbsd32_exec_aout.c,v 1.26 2014/01/25 05:15:43 christos Exp $ */
 /*     from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
 
 /*
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_aout.c,v 1.25 2010/04/23 15:19:20 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_aout.c,v 1.26 2014/01/25 05:15:43 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -113,6 +113,7 @@
 
        /* this is already needed by setup_stack() */
        epp->ep_flags |= EXEC_32;
+       epp->ep_flags &= ~EXEC_TOPDOWN_VM;
 
        switch (midmag) {
        case (NETBSD32_MID_MACHINE << 16) | ZMAGIC:



Home | Main Index | Thread Index | Old Index