Source-Changes-HG archive

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

[src/trunk]: src/sys/kern don't attempt to load elf64 on 32 bit machines



details:   https://anonhg.NetBSD.org/src/rev/cc07456e331f
branches:  trunk
changeset: 786232:cc07456e331f
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 20 18:04:41 2013 +0000

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

diffstat:

 sys/kern/kern_exec.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r e36ef140402b -r cc07456e331f sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Sat Apr 20 15:30:34 2013 +0000
+++ b/sys/kern/kern_exec.c      Sat Apr 20 18:04:41 2013 +0000
@@ -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 @@
 #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",



Home | Main Index | Thread Index | Old Index