blob: 5ef1e4cbb2a6931bf92251dc06a9ce3b99e3945f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <gelf.h>
#include "main.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;
}
|