From owner-freebsd-hackers Sat Jan 17 12:50:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA21674 for hackers-outgoing; Sat, 17 Jan 1998 12:50:43 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA21666 for ; Sat, 17 Jan 1998 12:50:22 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id MAA07904; Sat, 17 Jan 1998 12:50:21 -0800 (PST) (envelope-from jdp) Message-Id: <199801172050.MAA07904@austin.polstra.com> To: Amancio Hasty cc: hackers@FreeBSD.ORG Subject: Re: dladdr hax In-reply-to: Your message of "Fri, 16 Jan 1998 20:34:41 PST." <199801170434.UAA05162@rah.star-gate.com> Date: Sat, 17 Jan 1998 12:50:21 -0800 From: John Polstra Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > Thats not a problem . What is a problem is the materialization of > dladdr 8) I worked on it last August at the request of Jeffrey Hsu. I didn't commit it because I wasn't happy with it, and because Jeffrey found a work-around so that he didn't need it. I thought I had lost the changes when I shuffled some disks around recently. But today I found them again. It all works except that it doesn't know the pathname of the main program. If the address being queried is in a shared library, then it knows the path. If you will come up with (or suggest) a solution to finding the pathname of the main program, then I will add that into my version and commit it. And puhleeeze, don't suggest the hack of searching each of the directories in $PATH for argv[0]. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth