summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1998-08-06 00:03:28 +0000
committermycroft <mycroft@NetBSD.org>1998-08-06 00:03:28 +0000
commit41a070136b844478caaba8fc8a2b2e343512a3be (patch)
treefa12bad81aeb9bed4101cb7edda65188427fea09 /libexec
parentd2d470e18db80298420c13978eb3cbd8208fe78c (diff)
When DEBUG, log init and fini calls.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.aout_so/rtld.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libexec/ld.aout_so/rtld.c b/libexec/ld.aout_so/rtld.c
index a5869fc5694..835394149a4 100644
--- a/libexec/ld.aout_so/rtld.c
+++ b/libexec/ld.aout_so/rtld.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.c,v 1.63 1998/07/14 22:18:36 tv Exp $ */
+/* $NetBSD: rtld.c,v 1.64 1998/08/06 00:03:28 mycroft Exp $ */
/*
* Copyright (c) 1993 Paul Kranenburg
@@ -943,8 +943,15 @@ call_map(smp, sym)
struct nzlist *np;
np = lookup(sym, smp, &src_map, 1);
- if (np)
+ if (np) {
+#if DEBUG
+xprintf("call_map: %s in %#x enter\n", sym, smp);
+#endif
(*(void (*) __P((void)))(src_map->som_addr + np->nz_value))();
+#if DEBUG
+xprintf("call_map: %s in %#x exit\n", sym, smp);
+#endif
+ }
}
/*