Skip to content

Conversation

Diatrus
Copy link

@Diatrus Diatrus commented Jun 29, 2021

NSLink friends have been deprecated since Mac OS X 10.5.
The excerpt from <mach-o/dyld.h>:

/*

  • The following dyld API's are deprecated as of Mac OS X 10.5. They are either
  • no longer necessary or are superceeded by dlopen and friends in <dlfcn.h>.
  • dlopen/dlsym/dlclose have been available since Mac OS X 10.3 and work with
  • dylibs and bundles.
  • NSAddImage -> dlopen
  • NSLookupSymbolInImage -> dlsym
  • NSCreateObjectFileImageFromFile -> dlopen
  • NSDestroyObjectFileImage -> dlclose
  • NSLinkModule -> not needed when dlopen used
  • NSUnLinkModule -> not needed when dlclose used
  • NSLookupSymbolInModule -> dlsym
  • _dyld_image_containing_address -> dladdr
  • NSLinkEditError -> dlerror

*/

NSLink friends have been deprecated since Mac OS X 10.5.
The excerpt from <mach-o/dyld.h>:

/*
 * The following dyld API's are deprecated as of Mac OS X 10.5.  They are either
 * no longer necessary or are superceeded by dlopen and friends in <dlfcn.h>.
 * dlopen/dlsym/dlclose have been available since Mac OS X 10.3 and work with
 * dylibs and bundles.
 *
 *    NSAddImage                           -> dlopen
 *    NSLookupSymbolInImage                -> dlsym
 *    NSCreateObjectFileImageFromFile      -> dlopen
 *    NSDestroyObjectFileImage             -> dlclose
 *    NSLinkModule                         -> not needed when dlopen used
 *    NSUnLinkModule                       -> not needed when dlclose used
 *    NSLookupSymbolInModule               -> dlsym
 *    _dyld_image_containing_address       -> dladdr
 *    NSLinkEditError                      -> dlerror
 *
 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant