Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
ltrace
/
d5d93c492fd7cec016f09883f1e9c09cf97c6fb5
/
.
/
sysdeps
/
linux-gnu
/
i386
/
plt.c
blob: b53ff448eb834b69fdcd7ee2a54bc25f8dc8114a [
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
+
1
)
*
16
;
}
void
*
sym2addr
(
Process
*
proc
,
struct
library_symbol
*
sym
)
{
return
sym
->
enter_addr
;
}