about summary refs log tree commit diff
path: root/elf/globalmod1.c
blob: 778a558746b69ad75a0d4fdccfa0dd6ba88efaa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <dlfcn.h>
#include <stdio.h>

int
test (void)
{
  (void) dlopen ("reldepmod4.so", RTLD_LAZY | RTLD_GLOBAL);
  if (dlsym (RTLD_DEFAULT, "call_me") != NULL)
    {
      puts ("found \"call_me\"");
      return 0;
    }
  puts ("didn't find \"call_me\"");
  return 1;
}