• 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: Loading a shared library directly from inside of a ZIP file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading a shared library directly from inside of a ZIP file


  • Subject: Re: Loading a shared library directly from inside of a ZIP file
  • From: "Peter O'Gorman" <email@hidden>
  • Date: Sun, 22 Jan 2006 17:05:30 +0900

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Davidorff Pell wrote:
| How would you decompress the library? Is it in the ZIP file
| uncompressed? the dlopen() family of calls are *extremely* simple, so
| "hacking" them would not be a bad idea since they are "hacks" to  begin
| with. They're just wrappers around native calls anyway. Check  out the
| dlcompat library (which Tiger includes).

Tiger does not include dlcompat :-) dlopen code was much simplified and put
into the new dyld.

man NSObjectFileImage, look for NSCreateObjectFileImageFromMemory(), also
look at man NSModule for NSLinkModule.

I'm not sure how well NSCreateObjectFileImageFromMemory works, never tried it.

Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQ9M8ybiDAg3OZTLPAQIZrwQAjacSFzH6V4ggLmk5nT1oiU86DdDvpY7M
JjBEEp2bMJ1GEt7j397tHdzXEuhIi2DgaxWGY2yxdG2/a99U0+BwpcXIf1JiuoNk
D8kpsUeDl8oK8fLftXd20SetS2ZgwC6zb1tghQC71Fj2rpqeA8Hw8MktU3FVsqLz
aO8j1hW0ZN0=
=nB8z
-----END PGP SIGNATURE-----
_______________________________________________
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


  • Follow-Ups:
    • Re: Loading a shared library directly from inside of a ZIP file
      • From: Amanda Walker <email@hidden>
References: 
 >Loading a shared library directly from inside of a ZIP file (From: Martin Knapp-Cordes <email@hidden>)
 >Re: Loading a shared library directly from inside of a ZIP file (From: John Davidorff Pell <email@hidden>)

  • Prev by Date: Re: Loading a shared library directly from inside of a ZIP file
  • Next by Date: Re: Loading a shared library directly from inside of a ZIP file
  • Previous by thread: Re: Loading a shared library directly from inside of a ZIP file
  • Next by thread: Re: Loading a shared library directly from inside of a ZIP file
  • Index(es):
    • Date
    • Thread