Date: Wed, 9 Oct 1996 12:21:49 -0700 (PDT) From: Jeffrey Hsu <hsu> To: current Subject: dlsym broken in -current Message-ID: <199610091921.MAA23506@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Here's a program which shows the problem:
#include <dlfcn.h>
#include <stdio.h>
int
f()
{
}
main()
{
void *handle;
void *faddr;
printf("function f at 0x%x\n", f);
if (!(handle = dlopen(NULL, 1))) {
fprintf(stderr, "dlopen failed: %s\n", dlerror());
exit(1);
}
if (faddr = dlsym(NULL, "_f")) {
fprintf(stderr, "dlsym failed: %s\n", dlerror());
}
printf("faddr retrieved as 0x%x\n", faddr);
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610091921.MAA23506>
