From: "Edgar E. Iglesias" <[email protected]>

Signed-off-by: Edgar E. Iglesias <[email protected]>
---
 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


_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel

Reply via email to