blob: e39bb58d6b113c05de02a8af400cd01121b48c45 [file] [log] [blame]
Juan Cespedesd914a202004-11-10 00:15:33 +01001#include <gelf.h>
2#include "ltrace.h"
3#include "elf.h"
4
Ian Wienand9a2ad352006-02-20 22:44:45 +01005GElf_Addr
6arch_plt_sym_val (struct ltelf *lte, size_t ndx, GElf_Rela *rela)
Juan Cespedesd914a202004-11-10 00:15:33 +01007{
Ian Wienand9a2ad352006-02-20 22:44:45 +01008 return rela->r_offset + 4;
9}
10
11void * plt2addr(struct process *proc, void ** plt)
12{
13 return (void *) plt;
Juan Cespedesd914a202004-11-10 00:15:33 +010014}