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 Use ph, not phdr, consistently.



details:   https://anonhg.NetBSD.org/src/rev/279ebe0615b3
branches:  trunk
changeset: 786292:279ebe0615b3
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Apr 25 13:26:17 2013 +0000

description:
Use ph, not phdr, consistently.

diffstat:

 libexec/ld.elf_so/headers.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r d200679574e8 -r 279ebe0615b3 libexec/ld.elf_so/headers.c
--- a/libexec/ld.elf_so/headers.c       Thu Apr 25 13:15:26 2013 +0000
+++ b/libexec/ld.elf_so/headers.c       Thu Apr 25 13:26:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: headers.c,v 1.45 2013/04/25 13:14:41 matt Exp $         */
+/*     $NetBSD: headers.c,v 1.46 2013/04/25 13:26:17 matt Exp $         */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: headers.c,v 1.45 2013/04/25 13:14:41 matt Exp $");
+__RCSID("$NetBSD: headers.c,v 1.46 2013/04/25 13:26:17 matt Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -371,8 +371,8 @@
                if (ph->p_type != PT_PHDR)
                        continue;
                
-               obj->phdr = (void *)(uintptr_t)phdr->p_vaddr;
-               obj->phsize = phdr->p_memsz;
+               obj->phdr = (void *)(uintptr_t)ph->p_vaddr;
+               obj->phsize = ph->p_memsz;
                obj->relocbase = (caddr_t)((uintptr_t)ph - (uintptr_t)ph->p_vaddr);
                dbg(("headers: phdr %p phsize %zu relocbase %lx", obj->phdr,
                    obj->phsize, (long)obj->relocbase));



Home | Main Index | Thread Index | Old Index