aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/m68k/plt.c
blob: 445fe1bbd5b0c5d7a0f6967af2675fe246319096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <gelf.h>
#include "proc.h"
#include "common.h"
#include "library.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 : 20);
}

void *
sym2addr(Process *proc, struct library_symbol *sym) {
	return sym->enter_addr;
}