Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions inject-arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ int main(int argc, char** argv)
// refers to the next instruction rather than the current instruction.
regs.uregs[15] = addr - 4;

// clear T bit, because new code may in ARM mode
regs.uregs[16] = regs.uregs[16] & 0xffffffdf;

// pass arguments to my function injectSharedLibrary() by loading them
// into the right registers. see comments in injectSharedLibrary() for
// more details.
Expand Down