(do_lookup_x): Fix last patch.
authordrepper <drepper>
Mon, 4 Sep 2006 20:40:11 +0000 (20:40 +0000)
committerdrepper <drepper>
Mon, 4 Sep 2006 20:40:11 +0000 (20:40 +0000)
elf/do-lookup.h

index 28c4955..2585d83 100644 (file)
@@ -167,8 +167,6 @@ do_lookup_x (const char *undef_name, uint_fast32_t new_hash,
       const ElfW(Addr) *bitmask = map->l_gnu_bitmask;
       if (__builtin_expect (bitmask != NULL, 1))
        {
-         /* No symbol found so far.  */
-         symidx = SHN_UNDEF;
          ElfW(Addr) bitmask_word
            = bitmask[(new_hash / __ELF_NATIVE_CLASS)
                      & map->l_gnu_bitmask_idxbits];
@@ -197,6 +195,8 @@ do_lookup_x (const char *undef_name, uint_fast32_t new_hash,
                  while ((*hasharr++ & 1u) == 0);
                }
            }
+         /* No symbol found.  */
+         symidx = SHN_UNDEF;
        }
       else
        {