Trying to build/debug dyld library
Trying to build/debug dyld library
- Subject: Trying to build/debug dyld library
- From: "Junker, Gregory" <email@hidden>
- Date: Tue, 24 Jan 2017 02:25:35 +0000
- Thread-topic: Trying to build/debug dyld library
I need to debug an interposing issue we are seeing and I would like to build the dyld library
with some additional debug output, but as mentioned elsewhere on the internets, it's not really
possible in its current form. Specifically for the latest (dyld-421.1) it can't find
System/machine/cpu_capabilities.h (simple enough, it's in the XNU source) or vproc_priv.h (not
as simple, since it's apparently part of launchd, which is no longer open-source).
Has anyone *outside of Apple* had any success building this library; or, for that matter, any of
the libraries Apple posts on their open-source site?
In lieu of that, the problem I am seeing is that we DYLD_INSERT_LIBRARIES (that successfully
employs the standard interposing attributes) a small shim into the target process, which checks
to see if another shim should be loaded. If so, that second shim is dlopen()'ed into the
process, but none of the interposed functions in that library are ever invoked. I need to figure
out why the second library's interposing doesn't work (hence the desire to debug through the
dyld library). If anyone with intimate knowledge of the dynamic loaded in MacOS can help, I'm
fine with not having to build the dyld library (but these build issues still should be sorted).
Greg
_______________________________________________
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