Skip to content

Commit

Permalink
Fix address width check for static libs
Browse files Browse the repository at this point in the history
  • Loading branch information
wrwilliams committed Feb 3, 2017
1 parent 9d1fcea commit c6f8b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dyninstAPI/src/unix.C
Expand Up @@ -605,7 +605,7 @@ mapped_object *BinaryEdit::openResolvedLibraryName(std::string filename,
for (member_it = members.begin(); member_it != members.end();
++member_it)
{
if(isCompatibleBinary(*pathIter))
if((*member_it)->getAddressWidth() == getAddressWidth())
{
BinaryEdit *temp = BinaryEdit::openFile(*pathIter,
mgr(), patcher(), (*member_it)->memberName());
Expand All @@ -627,7 +627,7 @@ mapped_object *BinaryEdit::openResolvedLibraryName(std::string filename,
} else if (Symtab::openFile(singleObject, *pathIter)) {


if (isCompatibleBinary(*pathIter)) {
if (singleObject->getAddressWidth() == getAddressWidth()) {
if( singleObject->getObjectType() == obj_SharedLib ||
singleObject->getObjectType() == obj_Executable )
{
Expand Down

0 comments on commit c6f8b83

Please sign in to comment.