plt.c revision 135ac50e0e326f46942826fe08f64daaa0e3135a
1#include <gelf.h> 2#include "proc.h" 3#include "common.h" 4#include "library.h" 5 6GElf_Addr arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) 7{ 8 return lte->plt_addr + 0x20 + (ndx * 26); 9} 10 11void *sym2addr(Process *proc, struct library_symbol *sym) 12{ 13 return sym->enter_addr; 14} 15