(_dl_lookup_symbol_x): Mark object in which the symbol has been found
authordrepper <drepper>
Sat, 18 Sep 2004 06:46:15 +0000 (06:46 +0000)
committerdrepper <drepper>
Sat, 18 Sep 2004 06:46:15 +0000 (06:46 +0000)
as used.

elf/dl-lookup.c

index 2b73da5..d2a6976 100644 (file)
@@ -344,6 +344,9 @@ _dl_lookup_symbol_x (const char *undef_name, struct link_map *undef_map,
                                  symbol_scope, version, type_class,
                                  flags, skip_map);
 
+  /* The object is used.  */
+  current_value.m->l_used = 1;
+
   if (__builtin_expect (GLRO(dl_debug_mask)
                        & (DL_DEBUG_BINDINGS|DL_DEBUG_PRELINK), 0))
     _dl_debug_bindings (undef_name, undef_map, ref, symbol_scope,