Update.
[platform/upstream/glibc.git] / elf / reldepmod3.c
1 #include <dlfcn.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4
5 int
6 call_me (void)
7 {
8   int (*fp) (void);
9
10   fp = dlsym (RTLD_DEFAULT, "foo");
11   if (fp == NULL)
12     {
13       printf ("cannot get address of foo in global scope: %s\n", dlerror ());
14       exit (1);
15     }
16
17   return fp () - 42;
18 }