projects
/
platform
/
upstream
/
glibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add GLRO(dl_hwcap2) for new AT_HWCAP2 auxv_t a_type.
[platform/upstream/glibc.git]
/
elf
/
unload6mod2.c
1
#include <dlfcn.h>
2
#include <stdio.h>
3
#include <unistd.h>
4
5
static void *h;
6
7
static void __attribute__((constructor))
8
mod2init (void)
9
{
10
h = dlopen ("unload6mod3.so", RTLD_LAZY);
11
if (h == NULL)
12
{
13
puts ("dlopen unload6mod3.so failed");
14
fflush (stdout);
15
_exit (1);
16
}
17
}
18
19
static void __attribute__((destructor))
20
mod2fini (void)
21
{
22
dlclose (h);
23
}