Re: safari dynamic linking
Re: safari dynamic linking
- Subject: Re: safari dynamic linking
- From: Greg Parker <email@hidden>
- Date: Wed, 26 Aug 2009 18:46:40 -0700
On Aug 26, 2009, at 3:57 PM, Joel Reymont wrote:
On Aug 26, 2009, at 11:32 PM, Jean-Daniel Dupas wrote:
The list you get is the libraries that are loaded after the entry
point is reached.
I must not be thinking clearly since it's very late but I was under
the impression that to resolve symbols, the dynamic linker runs
before the program entry point is reached.
It does. That's when it loads the libraries in the `otool -L` list.
You can see them with DYLD_PRINT_LIBRARIES.
DYLD_PRINT_LIBRARIES_POST_LAUNCH prints only the libraries that are
loaded post-launch, if any. In practice this means calls to dlopen()
or NSBundle.
What circumstances might cause libraries to be loaded after the
program entry point, apart from manually invoking dlopen? Is Safari
manually loading the RawCamera, HelpData or Shortcut frameworks, for
example?
Yes, somebody is manually loading those with dlopen() or NSBundle.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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