Module Name: src Committed By: matt Date: Thu Jun 11 02:54:00 UTC 2015
Modified Files: src/sys/compat/linux/common: linux_exec_elf32.c Log Message: Force *stackp to (uintptr_t) before possibly moving to a smaller pointer size. To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/compat/linux/common/linux_exec_elf32.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/compat/linux/common/linux_exec_elf32.c diff -u src/sys/compat/linux/common/linux_exec_elf32.c:1.92 src/sys/compat/linux/common/linux_exec_elf32.c:1.93 --- src/sys/compat/linux/common/linux_exec_elf32.c:1.92 Fri Mar 20 20:36:27 2015 +++ src/sys/compat/linux/common/linux_exec_elf32.c Thu Jun 11 02:54:00 2015 @@ -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, 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;