plt.c revision 2a61d19bd244dadcde5009f1632cf14b95623e3d
1#include <gelf.h>
2#include "common.h"
3
4GElf_Addr
5arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) {
6	return lte->plt_addr + (ndx + 1)
7	    * ((lte->ehdr.e_flags & EF_CPU32) ? 24 : 12);
8}
9
10void *
11sym2addr(Process *proc, struct library_symbol *sym) {
12	return sym->enter_addr;
13}
14