summaryrefslogtreecommitdiff
path: root/elf/do-lookup.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-03-20 18:56:01 +0000
committerJakub Jelinek <jakub@redhat.com>2005-03-20 18:56:01 +0000
commit67e218b53a309ba3bdb3d7bdc0b8e05bc0354b06 (patch)
tree689fb8bd472a15303915d7c2a7f9ef4c823f77d2 /elf/do-lookup.h
parent792542d56249281f383a5455f021ec619cd32671 (diff)
Diffstat (limited to 'elf/do-lookup.h')
-rw-r--r--elf/do-lookup.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/do-lookup.h b/elf/do-lookup.h
index e57d9df26d..88de3fe26f 100644
--- a/elf/do-lookup.h
+++ b/elf/do-lookup.h
@@ -52,6 +52,10 @@ do_lookup_x (const char *undef_name, unsigned long int hash,
if ((type_class & ELF_RTYPE_CLASS_COPY) && map->l_type == lt_executable)
continue;
+ /* Do not look into objects which are going to be removed. */
+ if (map->l_removed)
+ continue;
+
/* Print some debugging info if wanted. */
if (__builtin_expect (GLRO(dl_debug_mask) & DL_DEBUG_SYMBOLS, 0))
_dl_debug_printf ("symbol=%s; lookup in file=%s\n",