]> git.ipfire.org Git - thirdparty/glibc.git/blame - elf/reldepmod3.c
INSTALL, install.texi: minor updates, regenerate
[thirdparty/glibc.git] / elf / reldepmod3.c
CommitLineData
2b7238dd 1#include <dlfcn.h>
6a72ae21 2#include <stdio.h>
2b7238dd
UD
3#include <stdlib.h>
4
5c80f57c
AJ
5extern int call_me (void);
6
2b7238dd
UD
7int
8call_me (void)
9{
10 int (*fp) (void);
11
12 fp = dlsym (RTLD_DEFAULT, "foo");
13 if (fp == NULL)
14 {
15 printf ("cannot get address of foo in global scope: %s\n", dlerror ());
16 exit (1);
17 }
18
19 return fp () - 42;
20}