diff options
author | bde <bde@FreeBSD.org> | 1998-07-15 05:00:26 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-15 05:00:26 +0000 |
commit | 6d175fbd76ecc6de2bcb284c1c2800b6803e0846 (patch) | |
tree | e5d7601ebcbac7d82e23e099dc0da6437e168860 /sys/kern/imgact_aout.c | |
parent | 74477c961e2a787403c0bea13c55ce9a4143e7ec (diff) | |
download | FreeBSD-src-6d175fbd76ecc6de2bcb284c1c2800b6803e0846.zip FreeBSD-src-6d175fbd76ecc6de2bcb284c1c2800b6803e0846.tar.gz |
Cast u_longs to uintptr_t before casting them to pointers. Don't
attempt to even partially support systems with function pointers
larger than object pointers.
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r-- | sys/kern/imgact_aout.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index dec3eeb..15f613d 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: imgact_aout.c,v 1.39 1998/02/03 21:41:12 bde Exp $ + * $Id: imgact_aout.c,v 1.40 1998/02/20 13:11:48 bde Exp $ */ #include <sys/param.h> @@ -187,8 +187,9 @@ exec_aout_imgact(imgp) /* Fill in process VM information */ vmspace->vm_tsize = a_out->a_text >> PAGE_SHIFT; vmspace->vm_dsize = (a_out->a_data + bss_size) >> PAGE_SHIFT; - vmspace->vm_taddr = (caddr_t) virtual_offset; - vmspace->vm_daddr = (caddr_t) virtual_offset + a_out->a_text; + vmspace->vm_taddr = (caddr_t) (uintptr_t) virtual_offset; + vmspace->vm_daddr = (caddr_t) (uintptr_t) + (virtual_offset + a_out->a_text); /* Fill in image_params */ imgp->interpreted = 0; |