From owner-freebsd-hackers Sun Jan 18 14:18:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA19160 for hackers-outgoing; Sun, 18 Jan 1998 14:18:36 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA19122 for ; Sun, 18 Jan 1998 14:18:18 -0800 (PST) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id PAA27379; Sun, 18 Jan 1998 15:18:12 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp03.primenet.com, id smtpd027368; Sun Jan 18 15:18:02 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id PAA04330; Sun, 18 Jan 1998 15:18:01 -0700 (MST) From: Terry Lambert Message-Id: <199801182218.PAA04330@usr04.primenet.com> Subject: Re: dladdr hax To: jdp@polstra.com (John Polstra) Date: Sun, 18 Jan 1998 22:18:01 +0000 (GMT) Cc: hackers@FreeBSD.ORG In-Reply-To: <199801182140.NAA15476@austin.polstra.com> from "John Polstra" at Jan 18, 98 01:40:34 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > > Could somebody with access to a Solaris machine please compile and > > run the attached program, and send me its output? > > Thanks, everybody, I've got it now! You can stop. :-) You aren't going to get what you probably thought you were going to get; spcifically, the libc symbol names will actually give you the address of the stub function linked from the shared library into the main program, not the address of the function in the C library. I pointed that out with my first test program and output (very similar to yours). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.