blob: cc6005efa8ea075eb7556b0f843041cf25048408 [file] [log] [blame]
#include <gelf.h>
#include "ltrace.h"
#include "elf.h"
GElf_Addr arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela)
{
return lte->plt_addr + 20 + ndx * 12;
}
void *sym2addr(struct process *proc, struct library_symbol *sym)
{
return sym->enter_addr;
}