From owner-freebsd-current Wed Oct 9 12:21:51 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA23516 for current-outgoing; Wed, 9 Oct 1996 12:21:51 -0700 (PDT) Received: (from hsu@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA23506 for current; Wed, 9 Oct 1996 12:21:49 -0700 (PDT) Date: Wed, 9 Oct 1996 12:21:49 -0700 (PDT) From: Jeffrey Hsu Message-Id: <199610091921.MAA23506@freefall.freebsd.org> To: current Subject: dlsym broken in -current Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Here's a program which shows the problem: #include #include 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); }