Module Name:    src
Committed By:   christos
Date:           Sat Apr 20 18:04:41 UTC 2013

Modified Files:
        src/sys/kern: kern_exec.c

Log Message:
don't attempt to load elf64 on 32 bit machines


To generate a diff of this commit:
cvs rdiff -u -r1.358 -r1.359 src/sys/kern/kern_exec.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/kern_exec.c
diff -u src/sys/kern/kern_exec.c:1.358 src/sys/kern/kern_exec.c:1.359
--- src/sys/kern/kern_exec.c:1.358	Thu Nov  8 12:40:46 2012
+++ src/sys/kern/kern_exec.c	Sat Apr 20 14:04:41 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_exec.c,v 1.358 2012/11/08 17:40:46 christos Exp $	*/
+/*	$NetBSD: kern_exec.c,v 1.359 2013/04/20 18:04:41 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.358 2012/11/08 17:40:46 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.359 2013/04/20 18:04:41 christos Exp $");
 
 #include "opt_exec.h"
 #include "opt_ktrace.h"
@@ -527,13 +527,17 @@ exec_autoload(void)
 #ifdef MODULAR
 	static const char * const native[] = {
 		"exec_elf32",
+#ifdef _LP64
 		"exec_elf64",
+#endif
 		"exec_script",
 		NULL
 	};
 	static const char * const compat[] = {
 		"exec_elf32",
+#ifdef _LP64
 		"exec_elf64",
+#endif
 		"exec_script",
 		"exec_aout",
 		"exec_coff",

Reply via email to