This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
wrapping dlsym using LD_PRELOAD
- From: dragoran <dragoran at feuerpokemon dot de>
- To: binutils at sourceware dot org
- Date: Wed, 26 Jul 2006 13:30:16 +0200
- Subject: wrapping dlsym using LD_PRELOAD
Hello
I want to create a wrapper around dlsym using a lib which is loaded via
LD_PRELOAD
the problems here are:
the --wrap options does not help here
creating my own dlsym wont work because it needs to call dlsym itself
which wont work because it keeps calling itself and results into a
segfault, using dlvsym instead causes a segfault too..
so whats the easiest way to create a wrapper around dlsym?
please cc me in your replies.