1 2 3 4 5 6 7 8 9
#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) * 16; }