From ea4ef2c7e464d95da56556e9e26101079cc35cf1 Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdh8d@virginia.edu> Date: Tue, 5 Jun 2018 08:57:11 -0700 Subject: [PATCH] changed to not pin instructions with unpinned ibta's --- src/zipr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/zipr.cpp b/src/zipr.cpp index 54df24f..63a6308 100644 --- a/src/zipr.cpp +++ b/src/zipr.cpp @@ -588,7 +588,10 @@ void ZiprImpl_t::AddPinnedInstructions() Instruction_t* insn=*it; assert(insn); - if(!insn->GetIndirectBranchTargetAddress()) + if(insn->GetIndirectBranchTargetAddress()==NULL) + continue; + + if(insn->GetIndirectBranchTargetAddress()->GetVirtualOffset()==0) continue; // deal with unassigned IBTAs. -- GitLab