]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
2006-07-17 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Mon, 17 Jul 2006 08:41:15 +0000 (08:41 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 17 Jul 2006 08:41:15 +0000 (08:41 +0000)
* elflint.c (struct version_namelist): Use GElf_Versym for `ndx' field.
(add_version): Likewise for argument.
(check_versym): Cast constant to GElf_Versym for comparison.

src/ChangeLog
src/elflint.c

index 358de01f837c6d1befc7ab9f6383c83cd27ed542..90fce1dcdc9270b4a2706ebd625096c603b1449a 100644 (file)
@@ -1,3 +1,9 @@
+2006-07-17  Roland McGrath  <roland@redhat.com>
+
+       * elflint.c (struct version_namelist): Use GElf_Versym for `ndx' field.
+       (add_version): Likewise for argument.
+       (check_versym): Cast constant to GElf_Versym for comparison.
+
 2006-07-12  Roland McGrath  <roland@redhat.com>
 
        * readelf.c (handle_gnu_hash): Add casts for machines where
index 23dae4eb2089c89f31b953e2c01086a5c1c09ae1..c3e08512f6c40bb9dce93b9a4327140c4de90e3c 100644 (file)
@@ -2361,14 +2361,14 @@ static struct version_namelist
 {
   const char *objname;
   const char *name;
-  GElf_Word ndx;
+  GElf_Versym ndx;
   enum { ver_def, ver_need } type;
   struct version_namelist *next;
 } *version_namelist;
 
 
 static int
-add_version (const char *objname, const char *name, GElf_Word ndx, int type)
+add_version (const char *objname, const char *name, GElf_Versym ndx, int type)
 {
   /* Check that there are no duplications.  */
   struct version_namelist *nlp = version_namelist;
@@ -2480,7 +2480,7 @@ section [%2d] '%s': symbol %d: local symbol with version\n"),
             index we need for this symbol.  */
          struct version_namelist *runp = version_namelist;
          while (runp != NULL)
-           if (runp->ndx == (*versym & 0x7fff))
+           if (runp->ndx == (*versym & (GElf_Versym) 0x7fff))
              break;
            else
              runp = runp->next;