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