plt.c revision f13505251e6402460f6cc7ec84e0d8ca91607b4f
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(struct process *proc, struct library_symbol *sym) { 12 return sym->enter_addr; 13} 14