Module Name:    src
Committed By:   skrll
Date:           Thu Sep 30 19:43:11 UTC 2010

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

Log Message:
Improve debug output.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 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.31 src/libexec/ld.elf_so/headers.c:1.32
--- src/libexec/ld.elf_so/headers.c:1.31	Thu Sep 30 09:11:18 2010
+++ src/libexec/ld.elf_so/headers.c	Thu Sep 30 19:43:11 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: headers.c,v 1.31 2010/09/30 09:11:18 skrll Exp $	 */
+/*	$NetBSD: headers.c,v 1.32 2010/09/30 19:43:11 skrll Exp $	 */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: headers.c,v 1.31 2010/09/30 09:11:18 skrll Exp $");
+__RCSID("$NetBSD: headers.c,v 1.32 2010/09/30 19:43:11 skrll Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -313,11 +313,12 @@
 	obj = _rtld_obj_new();
 	for (ph = phdr; ph < phlimit; ++ph) {
 		vaddr = ph->p_vaddr + relocoffs;
-		dbg(("headers: relocoffs = %lx\n", (long)relocoffs));
 		switch (ph->p_type) {
 
 		case PT_PHDR:
 			relocoffs = (uintptr_t)phdr - (uintptr_t)ph->p_vaddr;
+			dbg(("headers: phdr %p phsize %zu relocoffs %lx", obj->phdr,                                                                                  
+			    obj->phsize, (long)relocoffs)); 
 			break;
 
 		case PT_INTERP:

Reply via email to