blob: c027c5f340fe75cae841c2cf9b47e322e0938053 [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 + (ndx + 1)
* ((lte->ehdr.e_flags & EF_CPU32) ? 24 : 12);
}
void *
sym2addr(Process *proc, struct library_symbol *sym) {
return sym->enter_addr;
}