aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-reloc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-09-28 03:19:58 -0700
committerUlrich Drepper <drepper@redhat.com>2009-09-28 03:19:58 -0700
commit4fd894620f22dc189d3f8339e39c630c4d05421b (patch)
tree23ec71ebe63281d73d43f225bb517280138e5543 /elf/dl-reloc.c
parent0d1804061a2c27ffe511a5f9df572ad9748d8219 (diff)
downloadglibc-4fd894620f22dc189d3f8339e39c630c4d05421b.zip
glibc-4fd894620f22dc189d3f8339e39c630c4d05421b.tar.gz
glibc-4fd894620f22dc189d3f8339e39c630c4d05421b.tar.bz2
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.
Diffstat (limited to 'elf/dl-reloc.c')
-rw-r--r--elf/dl-reloc.c9
1 files changed, 3 insertions, 6 deletions
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)