From: Jay Freeman (saurik) Date: Wed, 8 Jan 2014 15:45:44 +0000 (-0800) Subject: Having ported to MSFindSymbol, nlset is obsolete. X-Git-Tag: v0.9.3912~23 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/4596e76a9a78dac32f4a70f152ff3261e1098c03 Having ported to MSFindSymbol, nlset is obsolete. --- diff --git a/Library.mm b/Library.mm index 48cfefc..f4b400a 100644 --- a/Library.mm +++ b/Library.mm @@ -2053,15 +2053,6 @@ static void msset(Type_ &function, MSImageRef image, const char *name) { #define WBHookSymbol(image, function) \ msset(function, image, "_" #function) -template -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(value); -} - template static void dlset(Type_ &function, const char *name) { function = reinterpret_cast(dlsym(RTLD_DEFAULT, name));