There are so many ways to check whether two binary files are equal. One of the way, is to calculate the MD5 Hash of the file and compare it with the MD5 hash of the another file.
md5sum first.so
md5sum second.so
md5sum second.so
The other slightly better is to do the diff of the files, using the diff command.
diff first.so second.so