repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add a testcase for copy reloc against protected data
[glibc.git]
/
elf
/
tst-audit9.c
blob
0982d8b7161aa4178e9f188f3f9fce4ea57d9ef8
1
#include <dlfcn.h>
2
3
int
main
(
void
)
4
{
5
void
*
h
=
dlopen
(
"$ORIGIN/tst-auditmod9b.so"
,
RTLD_LAZY
);
6
int
(*
fp
)(
void
) =
dlsym
(
h
,
"f"
);
7
return
fp
() -
1
;
8
}