Re: Loading a shared library directly from inside of a ZIP file
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