From 9836cfe7dbf10e2a1705d1cd49b89ad81c7ff638 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 23 Feb 2002 19:05:32 +0000 Subject: Update. * elf/dl-fini.c (_dl_fini): Print some final statistics on the total number of relocations performed. --- elf/dl-fini.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'elf/dl-fini.c') 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)); + } } -- cgit v1.2.3