This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]