Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
ltrace
/
d5d93c492fd7cec016f09883f1e9c09cf97c6fb5
/
.
/
sysdeps
/
linux-gnu
/
alpha
/
plt.c
blob: 83337b2ef6d7255d14ba8fa0c24aed65b25d8f1f [
file
] [
log
] [
blame
]
#include
<gelf.h>
#include
"common.h"
GElf_Addr
arch_plt_sym_val
(
struct
ltelf
*
lte
,
size_t
ndx
,
GElf_Rela
*
rela
)
{
return
lte
->
plt_addr
+
ndx
*
12
+
32
;
}
void
*
sym2addr
(
Process
*
proc
,
struct
library_symbol
*
sym
)
{
return
sym
->
enter_addr
;
}