elflint: Correct gnu_symbias usage in compare_hash_gnu_hash.
authorMark Wielaard <mjw@redhat.com>
Mon, 9 Mar 2015 15:41:48 +0000 (16:41 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 13 Mar 2015 08:41:25 +0000 (09:41 +0100)
commitae9aa3e4b2853d58598a6928eb1dbaacf6488496
treea42fcfbe44bda3650e5f49f0a8aa22b5114e02ff
parent0ff3e49f3381ca9613fe83456d3a20a94977c5c6
elflint: Correct gnu_symbias usage in compare_hash_gnu_hash.

commit 0a545e "elflint: Add various low-level checks." introduced a bug
in the handling of the gnu_symbias. The symbol in the bucket should first
be compared to STN_UNDEF before applying the bias. And the used symbol
index should have the bias added when compared against plain hash symbol.

Found on Debian wheezy with run-elflint-self.sh.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/elflint.c