summaryrefslogtreecommitdiffstats
path: root/src/elflint.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2011-03-10 13:02:32 +0100
committerMark Wielaard <[email protected]>2011-03-11 12:59:29 +0100
commita062b6bcadd1565d360acf640f9d4c159b2270ea (patch)
tree67de26efa165a12f511b1278e112eb8460c0aff6 /src/elflint.c
parenta70791179e61789e5108b3c68bae1d976da7be17 (diff)
Add new ebl_check_st_other_bits function.upstream/mpolacek/autotest
Diffstat (limited to 'src/elflint.c')
-rw-r--r--src/elflint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elflint.c b/src/elflint.c
index c1227355..5c8d0aaf 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -1011,7 +1011,7 @@ section [%2d] '%s': _DYNAMIC symbol size %" PRIu64 " does not match dynamic segm
ERROR (gettext ("\
section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-default visibility\n"),
idx, section_name (ebl, idx), cnt);
- if ((sym->st_other ^ GELF_ST_VISIBILITY (sym->st_other)) != 0)
+ if (! ebl_check_st_other_bits (ebl, sym->st_other))
ERROR (gettext ("\
section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"),
idx, section_name (ebl, idx), cnt);