aboutsummaryrefslogtreecommitdiff
path: root/lib/substitute.h (unfollow)
Commit message (Collapse)AuthorFilesLines
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