aboutsummaryrefslogtreecommitdiff
path: root/lib/hook-functions.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-21Remove dead code for Vita: pc_callbackReiko Asakura1-37/+4
2021-01-23Port to Vita Development SuiteReiko Asakura1-1/+0
2016-11-23Fixed defination of CC_CBXZ collides with other bitsYifan Lu1-1/+3
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/+2
2016-10-24Set outro pointer to use mirrored addressYifan Lu1-1/+2
2016-10-23Forgot NULL pointer checkYifan Lu1-4/+6
2016-10-18Added exemem for VitaYifan Lu1-2/+1
Removed unneeded field for hooks
2016-10-09Added basic hook removal supportYifan Lu1-0/+36
2016-10-09Slab allocation mirroring for VitaYifan Lu1-12/+5
2016-10-08Added slab allocator for trampoline in Vita platformYifan Lu1-8/+17
Added support for smaller (non-page) allocations for trampoline
2016-10-08Added support for platform specific aux data to execmemYifan Lu1-9/+13
2016-10-05Support using a different VMA for the hook destYifan Lu1-1/+2
2016-10-05Changed malloc in substitute_hook_functions to allocaYifan Lu1-2/+2
2016-10-05execmem_alloc_unsealed now outputs a separate pointer for exec and writing ↵Yifan Lu1-18/+29
to allow for mirrored writes
2016-10-05Fixed missing trampoline_size_left decrement for making initial trampoline jumpYifan Lu1-0/+4
Added comment about min exec page size requirement
2016-10-04Added option to removed pthread dependencyYifan Lu1-0/+6
Added option to remove dynamic linker stuff Fixed a reference in strerror.c that depends on __APPLE__ being defined
2015-07-16style policecomex1-6/+12
2015-07-10stuff!comex1-2/+2
2015-03-01A number of critical fixes painstakingly discovered in the slowest way possible.comex1-7/+10
2015-02-28Add extra argument to substitute_hook_functions and interpose_imports for ↵comex1-1/+6
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-23Ban calls within transform regions in threadsafe mode.comex1-1/+2
2015-02-18various fixescomex1-44/+46
2015-02-18Fix hook-function:comex1-44/+31
- 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-02-14Trampoline fixes.comex1-29/+29
The transformed code was incorrect because it assumed the pointer it was writing to was where the code would execute, but it was actually 'rewritten_temp'. Changed transform_dis_main to take a pc_trampoline pointer, which also helps the test harness. However, this means that it has to be called after the trampoline has been allocated, while before the trampoline allocation depended on the generated size; this change doesn't bother to use two passes or anything, but just allocates a new code buffer if the maximum possible size isn't available - not the end of the world, since trampoline_ptr will still only be increased by the actual size before the next hook in the series (if any).
2015-02-08Refactor disassembly so x86 works, and add x86 transform-dis.comex1-2/+2
This patch is a monolithic mess, because I was too lazy to do the refactor first (that would require some stash fun, since I wasn't actually sure before doing x86 transform-dis what would be needed). Anyway, the resulting code should be cleaner - less duplication. This breaks ARM/ARM64.
2015-02-03fix ARM64 too, theoreticallycomex1-12/+15
2015-02-01fix my utter failure to handle branches/conditionals correctly (on ARM)comex1-3/+3
2015-01-25fix strerrorcomex1-1/+1
2015-01-25fixescomex1-9/+20
2015-01-24fixescomex1-4/+7
2015-01-24it compiles...comex1-40/+41
2015-01-24...comex1-10/+237
2015-01-24Add function to deal with mprotecting RW and back. A bit more complex than ↵comex1-0/+2
the minimum would be... (and minor build fixes)
2015-01-21stopping other threads.comex1-0/+32