Module Name:    src
Committed By:   matt
Date:           Fri Mar  7 01:27:14 UTC 2014

Modified Files:
        src/libexec/ld.elf_so: headers.c

Log Message:
Make ldd happy


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/libexec/ld.elf_so/headers.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/ld.elf_so/headers.c
diff -u src/libexec/ld.elf_so/headers.c:1.53 src/libexec/ld.elf_so/headers.c:1.54
--- src/libexec/ld.elf_so/headers.c:1.53	Thu Mar  6 19:19:40 2014
+++ src/libexec/ld.elf_so/headers.c	Fri Mar  7 01:27:14 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: headers.c,v 1.53 2014/03/06 19:19:40 matt Exp $	 */
+/*	$NetBSD: headers.c,v 1.54 2014/03/07 01:27:14 matt Exp $	 */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: headers.c,v 1.53 2014/03/06 19:19:40 matt Exp $");
+__RCSID("$NetBSD: headers.c,v 1.54 2014/03/07 01:27:14 matt Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -300,7 +300,7 @@ _rtld_digest_dynamic(const char *execnam
 #ifdef __powerpc__
 #ifdef _LP64
 		case DT_PPC64_GLINK:
-			obj->glink = (Elf_Addr)(obj->relocbase + dynp->d_un.d_ptr);
+			obj->glink = (Elf_Addr)(uintptr_t)obj->relocbase + dynp->d_un.d_ptr;
 			break;
 #else
 		case DT_PPC_GOT:

Reply via email to