Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 18:28:52 +0000 (GMT)
From:      "E.B. Dreger" <eddy+public+spam@noc.everquick.net>
To:        hackers@freebsd.org
Subject:   dlopen(), ld.so, and library wrappers
Message-ID:  <Pine.LNX.4.20.0204021804130.20197-100000@www.everquick.net>

next in thread | raw e-mail | index | archive | help
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 <blacklist@brics.com>
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 <blacklist@brics.com>, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.20.0204021804130.20197-100000>