From 10091ea12690b876deb33b0b1b476f625a134996 Mon Sep 17 00:00:00 2001 From: jdh8d <jdh8d@git.zephyr-software.com> Date: Fri, 20 May 2016 01:56:02 +0000 Subject: [PATCH] fixed an oops about unpinned fixed calls that popped up in cfi. shouldn't delete random lines :) --- unpin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unpin.cpp b/unpin.cpp index ae9581c..c60fdd7 100644 --- a/unpin.cpp +++ b/unpin.cpp @@ -314,6 +314,12 @@ void Unpin_t::DoUpdateForInstructions() <<dec<<from_insn->GetBaseID()<<"@"<<hex<<from_insn_location<<" to point at " <<dec<<wrt_insn ->GetBaseID()<<"@"<<hex<<wrt_insn_location <<endl; + for(unsigned int i=0;i<from_insn->GetDataBits().size();i++) + { + unsigned char newbyte=newpush[i]; + ms[from_insn_location+i]=newbyte; + } + } // instruction has a pcrel memory operand. -- GitLab