glibc/elf/reldepmod3.c
Ulrich Drepper 6a72ae2124 Update.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
	syscall.
2000-08-27 03:28:06 +00:00

19 lines
285 B
C

#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
int
call_me (void)
{
int (*fp) (void);
fp = dlsym (RTLD_DEFAULT, "foo");
if (fp == NULL)
{
printf ("cannot get address of foo in global scope: %s\n", dlerror ());
exit (1);
}
return fp () - 42;
}