Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove long deprecated Apple APIs from DLL.cpp #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant