aboutsummaryrefslogtreecommitdiff
path: root/lib/substitute.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-11-23Changes to reflect older changes in mergeYifan Lu1-4/+4
2016-11-23Fixed defination of CC_CBXZ collides with other bitsYifan Lu1-0/+4
Fixed incorrect pc value in tdctx_to_actx Fixed ARM32 handling of CC_CBXZ (uses incorrect field in ctx->base) Fixed ARM32 transform_dis_branch incorrectly trashing LR for non-call based jumps Fixed ARM32 make_jump_patch not updated to use new assemble_ctx Added new option SUBSTITUTE_RELAXED to relax the disassembly engine Currently SUBSTITUTE_RELAXED only disables TRANSFORM_DIS_REL_JUMPS so jumps at the beginning of functions are allowed
2016-10-26Added passing of the opt data to recordsYifan Lu1-1/+4
2016-10-18Added exemem for VitaYifan Lu1-2/+0
Removed unneeded field for hooks
2016-10-09Added basic hook removal supportYifan Lu1-2/+22
2016-10-08Added support for platform specific aux data to execmemYifan Lu1-0/+2
2016-10-05Support using a different VMA for the hook destYifan Lu1-0/+2
2016-10-04Added option to removed pthread dependencyYifan Lu1-2/+4
Added option to remove dynamic linker stuff Fixed a reference in strerror.c that depends on __APPLE__ being defined
2015-07-16Add options field to struct substitute_{function,import}_hook.comex1-2/+12
I will probably need to add an option to deal with GCC 5.2's new optimization - to not save caller-saved registers if the called function is known not to use them, which would break with hooked functions. Don't want to emit the required stub by default because it will likely be slow. I need to verify that Clang doesn't currently have such an optimization... (ABI break - need to avoid this once it gets widely distributed Soon, obviously)
2015-07-16style policecomex1-1/+2
2015-07-10stuff!comex1-2/+2
2015-03-03fixes for compiling on older OS Xcomex1-0/+1
2015-02-28Add extra argument to substitute_hook_functions and interpose_imports for ↵comex1-9/+55
use with unhooking. I think we'll need to explicitly record trampoline locations to avoid the possibility of stomping on someone else's stuff if the function was re-patched... Also, document substitute_hook_functions.
2015-02-24fix (and make more robust) strerror.ccomex1-12/+14
2015-02-23Ban calls within transform regions in threadsafe mode.comex1-0/+8
2015-02-18Fix hook-function:comex1-5/+4
- Thread stoppage is now complemented by sigaction to catch injected threads (sigaction is not used exclusively because the rest of the program could be trying to use sigaction itself in the meantime - this is a real thing, ask Dolphin) - mprotect is no longer used due to max_protection possibly getting in the way; instead, a copy is created and mapped onto the original.
2015-01-28some more stuff compilescomex1-3/+3
2015-01-25fix strerrorcomex1-1/+1
2015-01-25fixescomex1-0/+8
2015-01-24...comex1-1/+5
2015-01-24Add function to deal with mprotecting RW and back. A bit more complex than ↵comex1-0/+1
the minimum would be... (and minor build fixes)
2015-01-21stopping other threads.comex1-0/+14
2015-01-21add substitute_strerrorcomex1-0/+3
2015-01-20progress on injectioncomex1-5/+6
2015-01-17fixes and test - both tests work on all archscomex1-3/+5
2015-01-17imp forwarding workscomex1-8/+13
2015-01-16and now for something completely different: assembly maybestret-IMPLcomex1-0/+32
forwarding functions for atomicity
2015-01-16interpose (based on %c based on data) compiles...comex1-13/+99
2015-01-10add licensingcomex1-1/+2
2015-01-10substratecomex1-2/+9
2015-01-10private syms starting to look goodcomex1-6/+38
2015-01-10simplifycomex1-8/+15
2015-01-10nah - this is nice looking but nonportablecomex1-0/+39