Re: dlsym interposition question
Re: dlsym interposition question
- Subject: Re: dlsym interposition question
- From: Jonas Maebe <email@hidden>
- Date: Fri, 04 Oct 2013 11:08:19 +0200
On 04 Oct 2013, at 01:23, email@hidden wrote:
My question is this. How can I find the address of the
definition of getpid that was interposed (i.e., the one
in libSystem.dylib)?
Calling dlsym with RTLD_NEXT should work for that, although the
description for that parameter in the man page (at least under Mac OS
X 10.5) seems to be wrong:
***
If dlsym() is called with the special handle RTLD_NEXT, then the
search for the symbol is limited to the images which were loaded after
the one issuing the call to dlsym().
***
I think that should read "... images which were loaded *before* the
one issuing the call ..."
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden