summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-16 21:13:49 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-16 21:13:49 +0000
commit11cd5e7f00a5d24b72f943c55ac0f6e2a809d8a8 (patch)
tree52f5ef879e452873112453aaf7c0fb877e2665fd /ldso
parentd3f352eb3c3cec97c97b4b70870e96366b3ff6ba (diff)
Oops again. We do want to print this info, but only when
_dl_trace_loaded_objects is true (i.e. when doing an 'ldd') -Erik
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/boot1.c5
-rw-r--r--ldso/ldso/ld-uClibc.c5
-rw-r--r--ldso/ldso/ldso.c5
3 files changed, 15 insertions, 0 deletions
diff --git a/ldso/ldso/boot1.c b/ldso/ldso/boot1.c
index 644740d60..771dca6a4 100644
--- a/ldso/ldso/boot1.c
+++ b/ldso/ldso/boot1.c
@@ -687,6 +687,11 @@ void _dl_boot(unsigned int args)
if (tpnt && _dl_strcmp(lpnt,
_dl_get_last_path_component(tpnt->libname)) == 0) {
struct elf_resolve *ttmp;
+
+ if (_dl_trace_loaded_objects && !tpnt->usage_count) {
+ _dl_fdprintf(1, "\t%s => %s (0x%x)\n",
+ lpnt, tpnt->libname, (unsigned) tpnt->loadaddr);
+ }
ttmp = _dl_loaded_modules;
while (ttmp->next)
ttmp = ttmp->next;
diff --git a/ldso/ldso/ld-uClibc.c b/ldso/ldso/ld-uClibc.c
index 644740d60..771dca6a4 100644
--- a/ldso/ldso/ld-uClibc.c
+++ b/ldso/ldso/ld-uClibc.c
@@ -687,6 +687,11 @@ void _dl_boot(unsigned int args)
if (tpnt && _dl_strcmp(lpnt,
_dl_get_last_path_component(tpnt->libname)) == 0) {
struct elf_resolve *ttmp;
+
+ if (_dl_trace_loaded_objects && !tpnt->usage_count) {
+ _dl_fdprintf(1, "\t%s => %s (0x%x)\n",
+ lpnt, tpnt->libname, (unsigned) tpnt->loadaddr);
+ }
ttmp = _dl_loaded_modules;
while (ttmp->next)
ttmp = ttmp->next;
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 644740d60..771dca6a4 100644
--- a/ldso/ldso/ldso.c
+++ b/ldso/ldso/ldso.c
@@ -687,6 +687,11 @@ void _dl_boot(unsigned int args)
if (tpnt && _dl_strcmp(lpnt,
_dl_get_last_path_component(tpnt->libname)) == 0) {
struct elf_resolve *ttmp;
+
+ if (_dl_trace_loaded_objects && !tpnt->usage_count) {
+ _dl_fdprintf(1, "\t%s => %s (0x%x)\n",
+ lpnt, tpnt->libname, (unsigned) tpnt->loadaddr);
+ }
ttmp = _dl_loaded_modules;
while (ttmp->next)
ttmp = ttmp->next;