aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/m68k/plt.c
blob: f20986c1ef74776aa1f24fe5b7b85e059cbc81b9 (plain)
1
2
3
4
5
6
7
8
9
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);
}