From owner-freebsd-hackers Sun Jan 18 13:52:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16882 for hackers-outgoing; Sun, 18 Jan 1998 13:52:03 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from freebie.brann.org (doorman.brann.org [166.84.191.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA16847 for ; Sun, 18 Jan 1998 13:51:45 -0800 (PST) (envelope-from jbrann@freebie.brann.org) Received: (from jbrann@localhost) by freebie.brann.org (8.8.8/8.8.7) id QAA07806; Sun, 18 Jan 1998 16:51:26 -0500 (EST) (envelope-from jbrann) From: John Brann Message-Id: <199801182151.QAA07806@freebie.brann.org> Subject: Re: dladdr hax In-Reply-To: <199801182059.MAA15204@austin.polstra.com> from John Polstra at "Jan 18, 98 12:59:19 pm" To: jdp@polstra.com (John Polstra) Date: Sun, 18 Jan 1998 16:51:25 -0500 (EST) Cc: hackers@FreeBSD.ORG Organisation: Not while I'm at home X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk John Polstra wrote... > Could somebody with access to a Solaris machine please compile and > run the attached program, and send me its output? > > Thanks, > John > -- > John Polstra jdp@polstra.com > John D. Polstra & Co., Inc. Seattle, Washington USA > "Self-knowledge is always bad news." -- John Barth > OK, here goes: $ uname -a SunOS mercury 5.5 Generic sun4m sparc SUNW,SPARCstation-5 $ cc -o jdptry try.c -ldl "try.c", line 33: warning: argument #2 is incompatible with prototype: prototype: pointer to void : "try.c", line 12 argument : pointer to function(int, pointer to pointer to char) returning int "try.c", line 34: warning: argument #2 is incompatible with prototype: prototype: pointer to void : "try.c", line 12 argument : pointer to function(pointer to const char, ...) returning int "try.c", line 35: warning: argument #2 is incompatible with prototype: prototype: pointer to void : "try.c", line 12 argument : pointer to function(long) returning int OK, so far, so good. $ ls jdptry try.c $ ./jdptry argv[0] = ./jdptry &end = 20c00 &foo = 20bfc: fname = ./jdptry fbase = 10000 sname = foo saddr = 20bfc &bar = 20bf4: fname = ./jdptry fbase = 10000 sname = bar saddr = 20bf4 &main = 10898: fname = ./jdptry fbase = 10000 sname = main saddr = 10898 &printf = 20bac: fname = ./jdptry fbase = 10000 sname = _PROCEDURE_LINKAGE_TABLE_ saddr = 20b58 &setuid = 20bc4: fname = ./jdptry fbase = 10000 sname = _PROCEDURE_LINKAGE_TABLE_ saddr = 20b58 I hope that's what you were looking for, this is all greek to me :-) Regards, John -- Prohibit work, prohibit pay - people are dying! Situationist International slogan finger jbrann@doorman.brann.org for pgp public key