Re: Loading a shared library directly from inside of a ZIP file
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) -----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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter O'Gorman