Open unresolvedsymbol opened 3 years ago
dlsym(handle, sym)
gets the correct value but the one set by applyHooks
is off by somewhere around 0x7f7700000000
Forgot to mention adding LibInfo::base
(from linker::get_library_base
) is off by some amount. For now the only solution I have is to find the offset by doing pointer math and sliding all the original fptrs in my mod.
At the end of
HookManager::LibInfo::applyHooks
,original
is set but is apparently relative to the base address the library was loaded at unlike how HookManager used to act on the non-ng branch. The hooker should not be required to slideorig
to call the function pointer.