Skip to content
Permalink
39dd69dfb9
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
27 lines (23 sloc) 323 Bytes
#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);
}