]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update MIPS dl-lookup.c.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 11 Nov 2011 22:07:55 +0000 (22:07 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 11 Nov 2011 22:07:55 +0000 (22:07 +0000)
ChangeLog.mips
sysdeps/mips/dl-lookup.c

index 78932d7a03f3692576e8b83706462b8ba86d7301..74c7bdd54cc513782bf42cf7d6a2441849b40ef0 100644 (file)
@@ -1,3 +1,7 @@
+2011-11-11  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/mips/dl-lookup.c: Update from generic version.
+
 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/mips/fpu/e_sqrt.c: Add __sqrt_finite alias.
index 6b36c34a84e8308f78b2e4b62c2b784dc201c978..fed3b6c6669446fc14028449736ba5f97d02229e 100644 (file)
@@ -877,7 +877,6 @@ internal_function
 _dl_setup_hash (struct link_map *map)
 {
   Elf_Symndx *hash;
-  Elf_Symndx nchain;
 
   if (__builtin_expect (map->l_info[DT_ADDRTAGIDX (DT_GNU_HASH) + DT_NUM
                                    + DT_THISPROCNUM + DT_VERSIONTAGNUM
@@ -909,7 +908,8 @@ _dl_setup_hash (struct link_map *map)
   hash = (void *) D_PTR (map, l_info[DT_HASH]);
 
   map->l_nbuckets = *hash++;
-  nchain = *hash++;
+  /* Skip nchain.  */
+  hash++;
   map->l_buckets = hash;
   hash += map->l_nbuckets;
   map->l_chain = hash;