mirror of git://sourceware.org/git/glibc.git
(_dl_num_relocations): New variable. (do_lookup): Increment _dl_num_relocations for every call.
This commit is contained in:
parent
47b33891c4
commit
8352b484cf
|
|
@ -56,6 +56,9 @@ struct sym_val
|
||||||
result; \
|
result; \
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/* Statistics function. */
|
||||||
|
unsigned long int _dl_num_relocations;
|
||||||
|
|
||||||
|
|
||||||
/* Inner part of the lookup functions. We return a value > 0 if we
|
/* Inner part of the lookup functions. We return a value > 0 if we
|
||||||
found the symbol, the value 0 if nothing is found and < 0 if
|
found the symbol, the value 0 if nothing is found and < 0 if
|
||||||
|
|
@ -71,6 +74,8 @@ do_lookup (const char *undef_name, unsigned long int hash,
|
||||||
size_t n = scope->r_nlist;
|
size_t n = scope->r_nlist;
|
||||||
struct link_map *map;
|
struct link_map *map;
|
||||||
|
|
||||||
|
++_dl_num_relocations;
|
||||||
|
|
||||||
for (; i < n; ++i)
|
for (; i < n; ++i)
|
||||||
{
|
{
|
||||||
const ElfW(Sym) *symtab;
|
const ElfW(Sym) *symtab;
|
||||||
|
|
@ -79,7 +84,7 @@ do_lookup (const char *undef_name, unsigned long int hash,
|
||||||
ElfW(Symndx) symidx;
|
ElfW(Symndx) symidx;
|
||||||
int num_versions = 0;
|
int num_versions = 0;
|
||||||
const ElfW(Sym) *sym;
|
const ElfW(Sym) *sym;
|
||||||
const ElfW(Sym) *versioned_sym;
|
const ElfW(Sym) *versioned_sym = NULL;
|
||||||
|
|
||||||
map = list[i];
|
map = list[i];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue