From owner-freebsd-hackers Tue Apr 2 10:28:57 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from a.mx.everquick.net (a.mx.everquick.net [216.89.137.3]) by hub.freebsd.org (Postfix) with ESMTP id 7A27C37B41E for ; Tue, 2 Apr 2002 10:28:53 -0800 (PST) Received: from localhost (eddy@localhost) by a.mx.everquick.net (8.11.6/8.10.2) with ESMTP id g32ISro20558; Tue, 2 Apr 2002 18:28:53 GMT X-EverQuick-No-Abuse: Report any e-mail abuse to Date: Tue, 2 Apr 2002 18:28:52 +0000 (GMT) From: "E.B. Dreger" To: hackers@freebsd.org Subject: dlopen(), ld.so, and library wrappers Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greetings all, I wish to accomplish the following: 1. Program "foo" loads shared object "bar" using dlopen() and dlsym() 2. "bar" needs certain symbols resolved, which "foo" intercepts. For example, "foo" might wrap malloc() or open() to provide its own behavior... much like subclassing window procedures on that OS from Redmond, only I'm wrapping library calls instead of window callback procedures. Any suggestions, or should I get busy hacking ld-elf.so? And, yes, I know that one must be very careful when playing with fire. If anyone wishes to tell of monsters or horror stories, I'd appreciate those as well. -- MTIA! Eddy P.S. -- Please CC me. I'm not currently subscribed. Brotsman & Dreger, Inc. - EverQuick Internet Division Phone: +1 (316) 794-8922 Wichita/(Inter)national Phone: +1 (785) 865-5885 Lawrence ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Date: Mon, 21 May 2001 11:23:58 +0000 (GMT) From: A Trap To: blacklist@brics.com Subject: Please ignore this portion of my mail signature. These last few lines are a trap for address-harvesting spambots. Do NOT send mail to , or you are likely to be blocked. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message