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 Improve debug output.
details: https://anonhg.NetBSD.org/src/rev/34f1b4b711b7
branches: trunk
changeset: 757873:34f1b4b711b7
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Sep 30 19:43:11 2010 +0000
description:
Improve debug output.
diffstat:
libexec/ld.elf_so/headers.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 21863588d3ae -r 34f1b4b711b7 libexec/ld.elf_so/headers.c
--- a/libexec/ld.elf_so/headers.c Thu Sep 30 19:32:40 2010 +0000
+++ b/libexec/ld.elf_so/headers.c Thu Sep 30 19:43:11 2010 +0000
@@ -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:
Home |
Main Index |
Thread Index |
Old Index