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