diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2012-08-31 01:21:55 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-31 09:52:27 +0200 |
commit | 5e2cfb11c420af3352a62ea197f37f85c00e024c (patch) | |
tree | 2947edbe758622e9f3a5119ef7ad0f4d067fef62 /sysdeps | |
parent | fcf256ceeab4b0b74cf1e18122e894aafce94fdc (diff) | |
download | ltrace-5e2cfb11c420af3352a62ea197f37f85c00e024c.tar.gz |
Fix arch_plt_sym_val for m68k
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/linux-gnu/m68k/plt.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 * |