* sysdeps/m68k/dl-machine.h (_dl_start_user): Pass correct
[glibc.git] / elf / reldepmod3.c
blobcadda630d91c8c0df44b1e5af763f194a8bd19ad
1 #include <dlfcn.h>
2 #include <stdio.h>
3 #include <stdlib.h>
5 int
6 call_me (void)
8 int (*fp) (void);
10 fp = dlsym (RTLD_DEFAULT, "foo");
11 if (fp == NULL)
13 printf ("cannot get address of foo in global scope: %s\n", dlerror ());
14 exit (1);
17 return fp () - 42;