mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00:00
28 lines
323 B
C
28 lines
323 B
C
|
#include <dlfcn.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
void
|
||
|
mod3_fini2 (void)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void
|
||
|
mod3_fini (void)
|
||
|
{
|
||
|
mod3_fini2 ();
|
||
|
}
|
||
|
|
||
|
void
|
||
|
mod3 (void)
|
||
|
{
|
||
|
void *h = dlopen ("$ORIGIN/unload8mod2.so", RTLD_LAZY);
|
||
|
if (h == NULL)
|
||
|
{
|
||
|
puts ("dlopen unload8mod2.so failed");
|
||
|
exit (1);
|
||
|
}
|
||
|
|
||
|
atexit (mod3_fini);
|
||
|
}
|