• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: safari dynamic linking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >safari dynamic linking (From: Joel Reymont <email@hidden>)
 >Re: safari dynamic linking (From: Jean-Daniel Dupas <email@hidden>)
 >Re: safari dynamic linking (From: Joel Reymont <email@hidden>)

  • Prev by Date: update_dyld_shared_cache and @executable_path
  • Next by Date: Re: dyld shared cache: firefox vs safari
  • Previous by thread: Re: safari dynamic linking
  • Next by thread: Re: safari dynamic linking
  • Index(es):
    • Date
    • Thread