Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/vax1k confirmed the code for MID_VAX1K NMAGIC bin...
details: https://anonhg.NetBSD.org/src/rev/a79fc2a1abe4
branches: trunk
changeset: 514388:a79fc2a1abe4
user: chuck <chuck%NetBSD.org@localhost>
date: Fri Aug 31 18:44:12 2001 +0000
description:
confirmed the code for MID_VAX1K NMAGIC binaries was wrong,
you've got to pad the text just like with 4.3BSD binaries.
fix it.
i have now successfully tested compat-vax1k with real
o/m/z magic binaries from both 4.3BSD and netbsd 1.3.
diffstat:
sys/compat/vax1k/vax1k_exec.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 2ea6fc2f3fe5 -r a79fc2a1abe4 sys/compat/vax1k/vax1k_exec.c
--- a/sys/compat/vax1k/vax1k_exec.c Fri Aug 31 18:06:13 2001 +0000
+++ b/sys/compat/vax1k/vax1k_exec.c Fri Aug 31 18:44:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vax1k_exec.c,v 1.3 2001/08/29 03:43:53 chuck Exp $ */
+/* $NetBSD: vax1k_exec.c,v 1.4 2001/08/31 18:44:12 chuck Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -92,10 +92,13 @@
goto done;
case (MID_VAX1K << 16) | NMAGIC:
+ error = exec_vax1k_prep_anymagic(p, epp,
+ sizeof(struct exec), 1);
+ goto done;
+
case (MID_VAX1K << 16) | OMAGIC:
error = exec_vax1k_prep_anymagic(p, epp,
sizeof(struct exec), 0);
- /* XXXCDC: should we pad NMAGIC? */
goto done;
}
Home |
Main Index |
Thread Index |
Old Index