[Ltrace-devel] [PATCH] Fix arch_plt_sym_val for m68k

Andreas Schwab schwab at linux-m68k.org
Thu Aug 30 23:21:55 UTC 2012


---
 sysdeps/linux-gnu/m68k/plt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysdeps/linux-gnu/m68k/plt.c b/sysdeps/linux-gnu/m68k/plt.c
index a1c2604..445fe1b 100644
--- a/sysdeps/linux-gnu/m68k/plt.c
+++ b/sysdeps/linux-gnu/m68k/plt.c
@@ -1,11 +1,12 @@
 #include <gelf.h>
 #include "proc.h"
 #include "common.h"
+#include "library.h"
 
 GElf_Addr
 arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) {
 	return lte->plt_addr + (ndx + 1)
-	    * ((lte->ehdr.e_flags & EF_CPU32) ? 24 : 12);
+	    * ((lte->ehdr.e_flags & EF_CPU32) ? 24 : 20);
 }
 
 void *
-- 
1.7.12


-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Ltrace-devel mailing list