Module Name: src
Committed By: christos
Date: Sat Jan 25 05:15:05 UTC 2014
Modified Files:
src/sys/kern: exec_aout.c
Log Message:
a.out binaries can't handle topdown.
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/kern/exec_aout.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/exec_aout.c
diff -u src/sys/kern/exec_aout.c:1.36 src/sys/kern/exec_aout.c:1.37
--- src/sys/kern/exec_aout.c:1.36 Thu Sep 19 14:50:59 2013
+++ src/sys/kern/exec_aout.c Sat Jan 25 00:15:05 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_aout.c,v 1.36 2013/09/19 18:50:59 christos Exp $ */
+/* $NetBSD: exec_aout.c,v 1.37 2014/01/25 05:15:05 christos Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_aout.c,v 1.36 2013/09/19 18:50:59 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_aout.c,v 1.37 2014/01/25 05:15:05 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_coredump.h"
@@ -116,6 +116,8 @@ exec_aout_makecmds(struct lwp *l, struct
midmag = mid << 16 | magic;
+ epp->ep_flags &= ~EXEC_TOPDOWN_VM;
+
switch (midmag) {
case (MID_MACHINE << 16) | ZMAGIC:
error = exec_aout_prep_zmagic(l, epp);