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 Print out PT_DYNAMIC address for objmain.



details:   https://anonhg.NetBSD.org/src/rev/04bb9a7820f2
branches:  trunk
changeset: 786587:04bb9a7820f2
user:      matt <matt%NetBSD.org@localhost>
date:      Thu May 02 21:11:03 2013 +0000

description:
Print out PT_DYNAMIC address for objmain.
Print out &_DYNAMIC too.

diffstat:

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

diffs (27 lines):

diff -r 9adda61c7a2f -r 04bb9a7820f2 libexec/ld.elf_so/headers.c
--- a/libexec/ld.elf_so/headers.c       Thu May 02 20:37:32 2013 +0000
+++ b/libexec/ld.elf_so/headers.c       Thu May 02 21:11:03 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: headers.c,v 1.47 2013/04/25 13:45:15 matt Exp $         */
+/*     $NetBSD: headers.c,v 1.48 2013/05/02 21:11:03 matt Exp $         */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: headers.c,v 1.47 2013/04/25 13:45:15 matt Exp $");
+__RCSID("$NetBSD: headers.c,v 1.48 2013/05/02 21:11:03 matt Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -403,6 +403,8 @@
 
                case PT_DYNAMIC:
                        obj->dynamic = (Elf_Dyn *)(uintptr_t)vaddr;
+                       dbg(("headers: PT_DYNAMIC %p phsize %zu",
+                           obj->dynamic, (size_t)ph->p_memsz));
                        break;
 
 #if defined(__HAVE_TLS_VARIANT_I) || defined(__HAVE_TLS_VARIANT_II)



Home | Main Index | Thread Index | Old Index