#define WBHookSymbol(image, function) \
msset(function, image, "_" #function)
-template <typename Type_>
-static void nlset(Type_ &function, struct nlist *nl, size_t index) {
- struct nlist &name(nl[index]);
- uintptr_t value(name.n_value);
- if ((name.n_desc & N_ARM_THUMB_DEF) != 0)
- value |= 0x00000001;
- function = reinterpret_cast<Type_>(value);
-}
-
template <typename Type_>
static void dlset(Type_ &function, const char *name) {
function = reinterpret_cast<Type_>(dlsym(RTLD_DEFAULT, name));