Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Only set EXEC_32 if on LP64 platform.
details: https://anonhg.NetBSD.org/src/rev/bd56dffa3b39
branches: trunk
changeset: 780670:bd56dffa3b39
user: matt <matt%NetBSD.org@localhost>
date: Fri Aug 03 07:49:18 2012 +0000
description:
Only set EXEC_32 if on LP64 platform.
diffstat:
sys/compat/netbsd32/netbsd32_exec_elf32.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 0f24bee6dd25 -r bd56dffa3b39 sys/compat/netbsd32/netbsd32_exec_elf32.c
--- a/sys/compat/netbsd32/netbsd32_exec_elf32.c Fri Aug 03 07:41:47 2012 +0000
+++ b/sys/compat/netbsd32/netbsd32_exec_elf32.c Fri Aug 03 07:49:18 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_exec_elf32.c,v 1.35 2012/02/03 20:11:54 matt Exp $ */
+/* $NetBSD: netbsd32_exec_elf32.c,v 1.36 2012/08/03 07:49:18 matt Exp $ */
/* from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
/*
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_elf32.c,v 1.35 2012/02/03 20:11:54 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_elf32.c,v 1.36 2012/08/03 07:49:18 matt Exp $");
#define ELFSIZE 32
@@ -114,7 +114,9 @@
extern const char machine32[];
(void)compat_elf_check_interp(epp, itp, machine32);
}
+#ifdef _LP64
epp->ep_flags |= EXEC_32 | EXEC_FORCEAUX;
+#endif
epp->ep_vm_minaddr = VM_MIN_ADDRESS;
epp->ep_vm_maxaddr = USRSTACK32;
#ifdef ELF_INTERP_NON_RELOCATABLE
Home |
Main Index |
Thread Index |
Old Index