From 4fd894620f22dc189d3f8339e39c630c4d05421b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 28 Sep 2009 03:19:58 -0700 Subject: Fix missing reloc dependency When DL_LOOKUP_ADD_DEPENDENCY was introduced a few callers of _dl_lookup_versioned_symbol were not properly adjusted. One of them survived until now. --- elf/dl-reloc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'elf') diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c index 680caad..6c00691 100644 --- a/elf/dl-reloc.c +++ b/elf/dl-reloc.c @@ -254,14 +254,11 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[], l->l_lookup_cache.type_class = _tc; \ l->l_lookup_cache.sym = (*ref); \ const struct r_found_version *v = NULL; \ - int flags = DL_LOOKUP_ADD_DEPENDENCY; \ if ((version) != NULL && (version)->hash != 0) \ - { \ - v = (version); \ - flags = 0; \ - } \ + v = (version); \ _lr = _dl_lookup_symbol_x (strtab + (*ref)->st_name, l, (ref), \ - scope, v, _tc, flags, NULL); \ + scope, v, _tc, \ + DL_LOOKUP_ADD_DEPENDENCY, NULL); \ l->l_lookup_cache.ret = (*ref); \ l->l_lookup_cache.value = _lr; })) \ : l) -- cgit v1.1