blob: 46367b8431ae1d5dd9f4651fde53e5862e5318cf [file] [log] [blame]
Edgar E. Iglesiasb1dda4b2010-07-19 13:37:45 +02001#include <gelf.h>
2#include "common.h"
3
4GElf_Addr arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela)
5{
6 return lte->plt_addr + 0x20 + (ndx * 26);
7}
8
9void *sym2addr(Process *proc, struct library_symbol *sym)
10{
11 return sym->enter_addr;
12}