Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



-----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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.