Consider symbol versions' public-ness during comparison

* src/abg-ir.cc (elf_symbol::operator==): Rather than comparing
	bindings, compare public-ness here.  That is, if two symbol
	versions' differ because one is GLOBAL and the other one is WEAK,
	they should still be considered equal, from an ABI standpoint.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-08-27 11:53:16 +02:00
parent 495a1dba55
commit 06f9ed88f5

View File

@ -621,7 +621,7 @@ elf_symbol::operator==(const elf_symbol& other)
{
return (get_name() == other.get_name()
&& get_type() == other.get_type()
&& get_binding() == other.get_binding()
&& is_public() == other.is_public()
&& get_is_defined() == other.get_is_defined()
&& get_version() == other.get_version());
}