diff options
author | Roland McGrath <roland@redhat.com> | 2006-07-17 08:41:15 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2006-07-17 08:41:15 +0000 |
commit | 858b189f82ecc32ca7042e74ccb022f794a9f83b (patch) | |
tree | 63f71e44d983cee623abedcc2137dd3cb3792c2f | |
parent | 4ec807ec38ea145b15e2d8d996e05d852c7e7fde (diff) | |
download | elfutils-858b189f82ecc32ca7042e74ccb022f794a9f83b.tar.gz |
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.
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/elflint.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 358de01f..90fce1dc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 diff --git a/src/elflint.c b/src/elflint.c index 23dae4eb..c3e08512 100644 --- a/src/elflint.c +++ b/src/elflint.c @@ -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; |