summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_exec_elf32.c
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2015-06-11 02:54:00 +0000
committermatt <matt@NetBSD.org>2015-06-11 02:54:00 +0000
commit9ec0fef3b893d2fd87e81b79786e2e98fec73703 (patch)
tree9d5890031fc5d63ef2ce8c18f3b0c1db618316d9 /sys/compat/linux/common/linux_exec_elf32.c
parent8c65b58ed2a229df1d57e1d310eff3bf1a90394f (diff)
Force *stackp to (uintptr_t) before possibly moving to a smaller pointer size.
Diffstat (limited to 'sys/compat/linux/common/linux_exec_elf32.c')
-rw-r--r--sys/compat/linux/common/linux_exec_elf32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_exec_elf32.c b/sys/compat/linux/common/linux_exec_elf32.c
index cd601f6fbc9..4e097f7ad80 100644
--- a/sys/compat/linux/common/linux_exec_elf32.c
+++ b/sys/compat/linux/common/linux_exec_elf32.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec_elf32.c,v 1.92 2015/03/20 20:36:27 maxv Exp $ */
+/* $NetBSD: linux_exec_elf32.c,v 1.93 2015/06/11 02:54:00 matt Exp $ */
/*-
* Copyright (c) 1995, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.92 2015/03/20 20:36:27 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.93 2015/06/11 02:54:00 matt Exp $");
#ifndef ELFSIZE
/* XXX should die */
@@ -460,7 +460,7 @@ ELFNAME2(linux,copyargs)(struct lwp *l, struct exec_package *pack,
a++;
a->a_type = LINUX_AT_RANDOM;
- a->a_v = (Elf_Addr)*stackp;
+ a->a_v = (Elf_Addr)(uintptr_t)*stackp;
a++;
a->a_type = AT_NULL;