subhook icon indicating copy to clipboard operation
subhook copied to clipboard

x64 trampolines rarely working

Open jdbool opened this issue 5 years ago • 1 comments

This is with v0.8.1, same issue as #15 and #43.

I'm hooking 42 functions in an x64 Linux binary. If I look at the output of GetTrampoline() on every hook after it's installed, 12 of them have trampolines, and the other 30 do not (nullptr).

I'm using subhook::HookFlags::HookFlag64BitOffset, I tried it without as well and the hooks didn't install properly.

The hooks of course work fine without using trampolines, but some of the functions are called very frequently so it would be nice to eliminate all the copying if possible.

jdbool avatar Nov 16 '20 20:11 jdbool

Confirmed. I had to switch to MinHook due to this.

Hyjarion avatar Mar 28 '22 13:03 Hyjarion