aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/m68k/plt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/linux-gnu/m68k/plt.c')
-rw-r--r--sysdeps/linux-gnu/m68k/plt.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/linux-gnu/m68k/plt.c b/sysdeps/linux-gnu/m68k/plt.c
new file mode 100644
index 0000000..f20986c
--- /dev/null
+++ b/sysdeps/linux-gnu/m68k/plt.c
@@ -0,0 +1,10 @@
+#include <gelf.h>
+#include "ltrace.h"
+#include "elf.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);
+}