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