about summary refs log tree commit diff
path: root/elf/dl-reloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-reloc.c')
-rw-r--r--elf/dl-reloc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 88bd3b681e..e5fbb440a5 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -131,7 +131,8 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
 							   l, (ref), scope,   \
 							   (version), _tc, 0) \
 		    : INTUSE(_dl_lookup_symbol) (strtab + (*ref)->st_name, l, \
-					         (ref), scope, _tc, 0));      \
+					         (ref), scope, _tc,	      \
+						 DL_LOOKUP_ADD_DEPENDENCY));  \
 	     l->l_lookup_cache.ret = (*ref);				      \
 	     l->l_lookup_cache.value = _lr; }))				      \
      : l)
@@ -152,7 +153,8 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
 							   l, (ref), scope,   \
 							   (version), _tc, 0) \
 		    : INTUSE(_dl_lookup_symbol) (strtab + (*ref)->st_name, l, \
-					      	 (ref), scope, _tc, 0));      \
+					      	 (ref), scope, _tc,	      \
+						 DL_LOOKUP_ADD_DEPENDENCY));  \
 	     l->l_lookup_cache.ret = (*ref);				      \
 	     l->l_lookup_cache.value = _lr; }))				      \
      : l->l_addr)