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 Add some debug messages for explicit rtld ...
details: https://anonhg.NetBSD.org/src/rev/6402deb3f23a
branches: trunk
changeset: 763604:6402deb3f23a
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Mar 27 13:15:34 2011 +0000
description:
Add some debug messages for explicit rtld entry points
diffstat:
libexec/ld.elf_so/rtld.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (71 lines):
diff -r 69877bef9eb9 -r 6402deb3f23a libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c Sun Mar 27 13:14:42 2011 +0000
+++ b/libexec/ld.elf_so/rtld.c Sun Mar 27 13:15:34 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.c,v 1.143 2011/03/27 13:14:42 joerg Exp $ */
+/* $NetBSD: rtld.c,v 1.144 2011/03/27 13:15:34 joerg Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rtld.c,v 1.143 2011/03/27 13:14:42 joerg Exp $");
+__RCSID("$NetBSD: rtld.c,v 1.144 2011/03/27 13:15:34 joerg Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -841,6 +841,7 @@
{
Obj_Entry *root;
+ dbg(("dlclose of %p", handle));
_rtld_exclusive_enter();
@@ -885,6 +886,8 @@
bool nodelete;
bool now;
+ dbg(("dlopen of %s %d", name, mode));
+
_rtld_exclusive_enter();
flags |= (mode & RTLD_GLOBAL) ? _RTLD_GLOBAL : 0;
@@ -985,6 +988,8 @@
void *retaddr;
DoneList donelist;
+ dbg(("dlsym of %s in %p", name, handle));
+
lookup_mutex_enter();
hash = _rtld_elf_hash(name);
@@ -1095,6 +1100,8 @@
void *symbol_addr;
unsigned long symoffset;
+ dbg(("dladdr of %p", addr));
+
lookup_mutex_enter();
#ifdef __HAVE_FUNCTION_DESCRIPTORS
@@ -1163,6 +1170,8 @@
const Obj_Entry *obj;
void *retaddr;
+ dbg(("dlinfo for %p %d", handle, req));
+
_rtld_shared_enter();
if (handle == RTLD_SELF) {
@@ -1211,6 +1220,8 @@
const Obj_Entry *obj;
int error = 0;
+ dbg(("dl_iterate_phdr"));
+
_rtld_shared_enter();
for (obj = _rtld_objlist; obj != NULL; obj = obj->next) {
Home |
Main Index |
Thread Index |
Old Index