Blame elf/unload6mod1.c

Packit 6c4009
#include <dlfcn.h>
Packit 6c4009
#include <stdio.h>
Packit 6c4009
Packit 6c4009
int
Packit 6c4009
foo (int i)
Packit 6c4009
{
Packit 6c4009
  void *h = dlopen ("unload6mod2.so", RTLD_LAZY);
Packit 6c4009
  if (h == NULL)
Packit 6c4009
    {
Packit 6c4009
      puts ("dlopen unload6mod2.so failed");
Packit 6c4009
      return 1;
Packit 6c4009
    }
Packit 6c4009
Packit 6c4009
  dlclose (h);
Packit 6c4009
  return i + 8;
Packit 6c4009
}