about summary refs log tree commit diff
path: root/elf/dl-fini.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-fini.c')
-rw-r--r--elf/dl-fini.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/elf/dl-fini.c b/elf/dl-fini.c
index 902ce086d9..5beb24b042 100644
--- a/elf/dl-fini.c
+++ b/elf/dl-fini.c
@@ -169,4 +169,15 @@ _dl_fini (void)
 	    ((fini_t) DL_DT_FINI_ADDRESS (l, l->l_addr + l->l_info[DT_FINI]->d_un.d_ptr)) ();
 	}
     }
+
+  if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_STATISTICS, 0))
+    {
+      INTUSE(_dl_debug_printf) ("\nruntime linker statistics:\n");
+      INTUSE(_dl_debug_printf) ("\
+           final number of relocations: %lu\n",
+				GL(dl_num_relocations));
+      INTUSE(_dl_debug_printf) ("\
+final number of relocations from cache: %lu\n",
+				GL(dl_num_cache_relocations));
+    }
 }