summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;