[Ltrace-devel] [PATCH v2 5/8] mipsel: Conditionalize GOT indirection in sym2addr

edgar.iglesias at gmail.com edgar.iglesias at gmail.com
Thu Sep 27 10:07:37 UTC 2012


From: "Edgar E. Iglesias" <edgar at axis.com>

Signed-off-by: Edgar E. Iglesias <edgar at axis.com>
---
 sysdeps/linux-gnu/mipsel/plt.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/sysdeps/linux-gnu/mipsel/plt.c b/sysdeps/linux-gnu/mipsel/plt.c
index d4d7ca9..6ef67b2 100644
--- a/sysdeps/linux-gnu/mipsel/plt.c
+++ b/sysdeps/linux-gnu/mipsel/plt.c
@@ -66,6 +66,11 @@ arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela *rela)
 void *
 sym2addr(Process *proc, struct library_symbol *sym) {
     long ret;
+
+    if (sym->plt_type == LS_TOPLT_NONE) {
+        return sym->enter_addr;
+    }
+
     if(!proc->pid){
         return 0;
     }
-- 
1.7.8.6




More information about the Ltrace-devel mailing list