subhook
subhook copied to clipboard
add SUBHOOK_TRY_ALLOCATE_TRAMPOLINE_NEAR_SOURCE flag
On 64-bit Linux systems, this flag will let subhook call mmap() with MAP_FIXED_NOREPLACE to allocate trampoline code near the source function. This helps avoid relocation overflow when generating trampoline code.
The exact allocation address will be determined by going through
/proc/
This should help address issues like #53
This should help address issues like #53
I tried your patch on x64 linux and it doesn't seem to work. I still get overflow errors with SUBHOOK_TRY_ALLOCATE_TRAMPOLINE_NEAR_SOURCE and I get null trampolines with SUBHOOK_64BIT_OFFSET|SUBHOOK_TRY_ALLOCATE_TRAMPOLINE_NEAR_SOURCE.
I'm using funchook now, they don't have any of these issues.
hallo sir, can u help me?