From 4596e76a9a78dac32f4a70f152ff3261e1098c03 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 8 Jan 2014 07:45:44 -0800 Subject: [PATCH] Having ported to MSFindSymbol, nlset is obsolete. --- Library.mm | 9 --------- 1 file changed, 9 deletions(-) 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)); -- 2.45.2