Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Correctly check Mach-O fat header so that fat binar...
details: https://anonhg.NetBSD.org/src/rev/de4e748222a0
branches: trunk
changeset: 551493:de4e748222a0
user: manu <manu%NetBSD.org@localhost>
date: Sun Sep 07 11:16:59 2003 +0000
description:
Correctly check Mach-O fat header so that fat binaries get launched.
diffstat:
sys/kern/exec_macho.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 65207b612484 -r de4e748222a0 sys/kern/exec_macho.c
--- a/sys/kern/exec_macho.c Sun Sep 07 10:45:11 2003 +0000
+++ b/sys/kern/exec_macho.c Sun Sep 07 11:16:59 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_macho.c,v 1.26 2003/08/08 18:53:14 christos Exp $ */
+/* $NetBSD: exec_macho.c,v 1.27 2003/09/07 11:16:59 manu Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_macho.c,v 1.26 2003/08/08 18:53:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_macho.c,v 1.27 2003/09/07 11:16:59 manu Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -442,6 +442,9 @@
for (sc = exec_macho_supported_cpu; *sc; sc++)
if (*sc == be32toh(arch.cputype))
break;
+
+ if (sc != NULL)
+ break;
}
if (sc == NULL || *sc == 0) {
DPRINTF(("CPU %d not supported by this binary",
Home |
Main Index |
Thread Index |
Old Index