Lines Matching defs:mod*

1 /* -*- mode: C++; c-basic-offset: 4; tab-width: 4 -*-
93 static NSModule _dyld_link_module(NSObjectFileImage object_addr, size_t object_size, const char* moduleName, uint32_t options);
96 static bool NSMakePrivateModulePublic(NSModule module);
101 static void client_dyld_lookup_and_bind(const char* symbolName, void** address, NSModule* module);
227 inline ImageLoader* NSModuleToImageLoader(NSModule module)
229 ImageLoader* image = (ImageLoader*)module;
391 // -init routines are called before module initializers (what C++
393 // routine causes the module initializers for an image to be called
405 void _dyld_lookup_and_bind_fully(const char* symbolName, void** address, NSModule* module)
408 dyld::log("%s(\"%s\", %p, %p)\n", __func__, symbolName, address, module);
417 if ( module != NULL)
418 *module = ImageLoaderToNSModule(image);
428 if ( module != NULL)
429 *module = NULL;
435 static void client_dyld_lookup_and_bind(const char* symbolName, void** address, NSModule* module)
438 dyld::log("_dyld_lookup_and_bind(\"%s\", %p, %p)\n", symbolName, address, module);
444 if ( module != NULL)
445 *module = ImageLoaderToNSModule(image);
451 if ( module != NULL)
452 *module = NULL;
456 void _dyld_lookup_and_bind_with_hint(const char* symbolName, const char* library_name_hint, void** address, NSModule* module)
459 dyld::log("%s(\"%s\", \"%s\", %p, %p)\n", __func__, symbolName, library_name_hint, address, module);
467 if ( module != NULL)
468 *module = ImageLoaderToNSModule(image);
474 if ( module != NULL)
475 *module = NULL;
971 NSModule NSLinkModule(NSObjectFileImage objectFileImage, const char* moduleName, uint32_t options)
974 dyld::log("%s(%p, \"%s\", 0x%08X)\n", __func__, objectFileImage, moduleName, options);
988 // for memory based images, set moduleName as the name anyone calling _dyld_get_image_name() will see
990 objectFileImage->image->setPath(moduleName);
994 info.imageFilePath = moduleName;
1023 setLastError(NSLinkEditOtherError, 0, moduleName, msg);
1034 static NSModule _dyld_link_module(NSObjectFileImage object_addr, size_t object_size, const char* moduleName, uint32_t options)
1037 dyld::log("%s(%p, \"%s\", 0x%08X)\n", "NSLinkModule", object_addr, moduleName, options); // note name/args translation
1041 const char* imageName = moduleName;
1064 setLastError(NSLinkEditOtherError, 0, moduleName, msg);
1077 NSSymbol NSLookupSymbolInModule(NSModule module, const char* symbolName)
1080 dyld::log("%s(%p, \"%s\")\n", __func__, (void *)module, symbolName);
1081 ImageLoader* image = NSModuleToImageLoader(module);
1087 const char* NSNameOfModule(NSModule module)
1090 dyld::log("%s(%p)\n", __func__, module);
1091 ImageLoader* image = NSModuleToImageLoader(module);
1097 const char* NSLibraryNameForModule(NSModule module)
1100 dyld::log("%s(%p)\n", __func__, module);
1101 ImageLoader* image = NSModuleToImageLoader(module);
1107 bool NSUnLinkModule(NSModule module, uint32_t options)
1110 dyld::log("%s(%p, 0x%08X)\n", __func__, module, options);
1111 if ( module == NULL )
1113 ImageLoader* image = NSModuleToImageLoader(module);
1226 // flag on the image for this module. If the module was found and it was
1229 static bool NSMakePrivateModulePublic(NSModule module)
1231 ImageLoader* image = NSModuleToImageLoader(module);
1393 void* dlopen(const char* path, int mode)
1396 dyld::log("%s(%s, 0x%08X)\n", __func__, ((path==NULL) ? "NULL" : path), mode);
1403 if ( (mode & RTLD_FIRST) != 0 )
1460 context.dontLoad = ( (mode & RTLD_NOLOAD) != 0 );
1473 if ( (mode & RTLD_NOLOAD) == 0 ) {
1475 bool forceLazysBound = ( (mode & RTLD_NOW) != 0 );
1479 if ( (mode & RTLD_LOCAL) != 0 )
1489 if ( (mode & RTLD_NODELETE) != 0 )
1504 if ( (mode & RTLD_NOLOAD) == 0 ) {
1511 if ( (mode & RTLD_FIRST) != 0 )
1525 const char* str = dyld::mkstringf("dlopen(%s, %d): %s", path, mode, msg);
1540 if ( (mode & RTLD_NOLOAD) && (result == NULL) ) {
1566 ImageLoader* image = (ImageLoader*)(((uintptr_t)handle) & (-4)); // clear mode bits
1728 image = (ImageLoader*)(((uintptr_t)handle) & (-4)); // clear mode bits