Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so Add cast so that usr.bin/ldd/elf32 builds.
details: https://anonhg.NetBSD.org/src/rev/d5f3a4110256
branches: trunk
changeset: 758073:d5f3a4110256
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Oct 16 17:48:12 2010 +0000
description:
Add cast so that usr.bin/ldd/elf32 builds.
diffstat:
libexec/ld.elf_so/headers.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3ba932ae7b03 -r d5f3a4110256 libexec/ld.elf_so/headers.c
--- a/libexec/ld.elf_so/headers.c Sat Oct 16 17:10:42 2010 +0000
+++ b/libexec/ld.elf_so/headers.c Sat Oct 16 17:48:12 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: headers.c,v 1.36 2010/10/16 10:27:07 skrll Exp $ */
+/* $NetBSD: headers.c,v 1.37 2010/10/16 17:48:12 skrll Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: headers.c,v 1.36 2010/10/16 10:27:07 skrll Exp $");
+__RCSID("$NetBSD: headers.c,v 1.37 2010/10/16 17:48:12 skrll Exp $");
#endif /* not lint */
#include <err.h>
@@ -325,7 +325,7 @@
assert(obj->phdr == phdr);
for (ph = phdr; ph < phlimit; ++ph) {
- vaddr = (Elf_Addr)obj->relocbase + ph->p_vaddr;
+ vaddr = (Elf_Addr)(uintptr_t)(obj->relocbase + ph->p_vaddr);
switch (ph->p_type) {
case PT_INTERP:
Home |
Main Index |
Thread Index |
Old Index