]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_map_object): Remove incorrect optimization for SHARED code.
authorUlrich Drepper <drepper@redhat.com>
Tue, 29 Jan 2002 04:37:21 +0000 (04:37 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 29 Jan 2002 04:37:21 +0000 (04:37 +0000)
elf/dl-load.c

index 0bc01eca206a63cca316ae87a95ef22713d263f9..b4affadfe1ba007acba6a6e3400c5b20484e1d34 100644 (file)
@@ -1748,14 +1748,8 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded,
 
       /* Finally, try the default path.  */
       if (fd == -1
-         && ((l = loader ?: _dl_loaded)
-             /* 'l' is always != NULL for dynamically linked objects.  */
-#ifdef SHARED
-             ,
-#else
-             == NULL ||
-#endif
-             __builtin_expect (!(l->l_flags_1 & DF_1_NODEFLIB), 1))
+         && ((l = loader ?: _dl_loaded) == NULL
+             || __builtin_expect (!(l->l_flags_1 & DF_1_NODEFLIB), 1))
          && rtld_search_dirs.dirs != (void *) -1)
        fd = open_path (name, namelen, preloaded, &rtld_search_dirs,
                        &realname, &fb);