You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
323 B

#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);
}