1#include <gelf.h> 2#include "ltrace.h" 3#include "elf.h" 4 5GElf_Addr arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) 6{ 7 return lte->plt_addr + (ndx + 1) 8 * ((lte->ehdr.e_flags & EF_CPU32) ? 24 : 12); 9} 10