Re: Idea for LD_PRELOAD (retraction)

Adam J. Richter (adam@yggdrasil.com)
Sun, 4 Jul 1999 18:21:00 -0700


I wrote:
> The problem with LD_PRELOAD is that it can only replace function
>definitions, rather than "wrap" additional work around functions,

I would like to thank Artur Skawina for pointing out that
this can be done with dlsym(RTLD_NEXT, "symbol") and even include
a sample program, and also Ulrich Drepper for saying that there
was a way to do it with dlsym.

Based on Artur's example, I have made a new release of logwrites
in ftp://ftp.yggdrasil.com/pub/dist/pkg/logwrites-1.21.tar.gz and I
am examining zlibc (the transparent compression intercept library) to
see about making the same stackability changes there. Thanks for the
helpful information.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/