• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/dyld-353.2.1/launch-cache/

Lines Matching +defs:name +defs:pos

275 		// <rdar://problem/9279770> support when install name is a symlink
316 PathToNode::iterator pos = fNodes.find(path);
317 if ( pos != fNodes.end() )
318 return pos->second;
326 pos = fNodes.find(realPath);
327 if ( pos != fNodes.end() ) {
334 if ( strcmp(aliasPath, pos->second->getLayout()->getID().name) != 0 ) {
335 fAliasesMap[strdup(aliasPath)] = pos->second->getLayout()->getID().name;
339 return pos->second;
350 // if install name is not real path, add install name to node map
351 if ( (node->getLayout()->getFileType() == MH_DYLIB) && (strcmp(realPath, node->getLayout()->getID().name) != 0) ) {
352 //fprintf(stderr, "adding %s node alias %s for %s\n", archName(fArchPair), node->getLayout()->getID().name, realPath);
353 pos = fNodes.find(node->getLayout()->getID().name);
354 if ( pos != fNodes.end() ) {
359 pos->second->getLayout()->uuid(uuid2);
364 node->getLayout()->getID().name, pos->second->getPath(), node->getPath());
369 // <rdar://problem/12763450> update_dyld_shared_cache should fail if two images have same install name
371 node->getLayout()->getID().name, pos->second->getPath(), node->getPath());
376 fNodes[node->getLayout()->getID().name] = node;
391 if ( strcmp(aliasPath, node->getLayout()->getID().name) != 0 ) {
392 fAliasesMap[strdup(aliasPath)] = node->getLayout()->getID().name;
409 const char* dependentPath = it->name;
511 if ( layout->getID().name[0] == '@' ) {
575 asprintf(msg, "can't put %s in shared cache because it was built -flat_namespace", layout->getID().name);
577 asprintf(msg, "can't put %s in shared cache because its -install_name is not in /usr/lib or /System/Library", layout->getID().name);
579 asprintf(msg, "can't put %s in shared cache because it was not built for %s or later", layout->getID().name, (iPhoneOS ? "iPhoneOS 3.1" : "MacOSX 10.5"));
581 asprintf(msg, "can't put %s in shared cache because it is not owned by root", layout->getID().name);
583 asprintf(msg, "can't put %s in shared cache because it was built with '-undefined dynamic_lookup'", layout->getID().name);
585 asprintf(msg, "can't put %s in shared cache because it was built with '-bundle_loader'", layout->getID().name);
587 asprintf(msg, "can't put %s in shared cache because it has multiple r/w segments", layout->getID().name);
605 asprintf(&msg, "can't put %s in shared cache, unknown reason", layout->getID().name);
616 PathToNode::const_iterator pos = nodes.find(dit->name);
617 if ( pos == nodes.end() ) {
620 if ( realpath(dit->name, realPath) != NULL ) {
629 asprintf(&msg, "can't put %s in shared cache because it depends on %s which can't be found", layout->getID().name, dit->name);
636 if ( ! canBeShared(pos->second->getLayout(), ap, possibleLibs, shareableMap) ) {
639 asprintf(&msg, "can't put %s in shared cache because it depends on %s which can't be in shared cache", layout->getID().name, dit->name);
694 StringToOffset::iterator pos = fUniqueStrings.find(str);
695 if ( pos != fUniqueStrings.end() )
696 return pos->second;
781 { return (strcmp(left.layout->getID().name, right.layout->getID().name) < 0); }
1030 temp.info.inode = pathHash(lib->getID().name);
1035 if ( strcmp(ait->second, lib->getID().name) == 0 ) {
1123 // alias looks just like real dylib, but has a different name string
1152 getpid(), fArchGraph->archName(), it->layout->getID().name, cacheEntry->address(), it->layout->getSegments()[0].newAddress());
1232 if ( seg.readable() && !seg.writable() && !seg.executable() && (strcmp(seg.name(), "__LINKEDIT") != 0) ) {
1248 if ( seg.readable() && !seg.writable() && !seg.executable() && (strcmp(seg.name(), "__LINKEDIT") == 0) ) {
1379 //fprintf(stderr, "inode=0x%llX, mTime=0x%llX, path=%s\n", it->info.inode, it->info.modTime, it->layout->getID().name);
1384 getpid(), archPairName, it->layout->getID().name);
1387 if ( strcmp((char*)cache+cacheEntry->pathFileOffset(), it->layout->getID().name) == 0 ) {
1392 getpid(), archPairName, it->layout->getID().name);
1405 && (strcmp((char*)cache+cacheEntry->pathFileOffset(), it->layout->getID().name) == 0) ) {
1413 throwf("update_dyld_shared_cache[%u] can't verify %s cache because %s is not in existing cache\n", getpid(), archPairName, it->layout->getID().name);
1416 fprintf(stderr, "update_dyld_shared_cache[%u] updating %s cache because dylib at %s has changed\n", getpid(), archPairName, it->layout->getID().name);
1427 // fprintf(stderr," %s\n", it->layout->getID().name);
1571 if ( strcmp(seg.name(), "__LINKEDIT") == 0 )
1690 const char* name = &fStrings[entry->n_strx()];
1694 // if local in __text, add <redacted> symbol name to shared cache so backtraces don't have bogus names
1701 unmappedSymbols.back().set_n_strx(unmappedLocalsStringPool.addUnique(name));
1704 newSymbolEntry->set_n_strx(fNewStringPool.addUnique(name));
1736 // sort by name, so that dyld does not need a toc
1781 //fprintf(stderr, "copyExternalRelocations() old=%d, new=%u name=%s in %s\n", reloc->r_symbolnum(), newSymbolIndex,
1820 //fprintf(stderr, "copyIndirectSymbolTable() old=%d, new=%u name=%s in %s\n", oldSymbolIndex, newSymbolIndex,
2082 if ( !seg.writable() && !seg.executable() && (strcmp(seg.name(), "__LINKEDIT") == 0) ) {
2157 const char *name = cls->getName(cache);
2158 uint64_t name_vmaddr = cache->VMAddressForMappedAddress(name);
2161 fClassNames.insert(objc_opt::string_map::value_type(name, name_vmaddr));
2162 fClasses.insert(objc_opt::class_map::value_type(name, std::pair<uint64_t, uint64_t>(cls_vmaddr, hinfo_vmaddr)));
2585 throwf("can't open file %s, errnor=%d", it->layout->getID().name, errno);
2604 fprintf(stderr, "\t\tsegment %s, size=0x%0llX, cache address=0x%0llX\n", seg.name(), seg.fileSize(), seg.newAddress());
2612 throwf("read failure copying dylib errno=%d for %s", errno, it->layout->getID().name);
2615 segmentSize, segmentSrcStartOffset, readResult, it->layout->getID().name);
2621 throwf("%s while copying %s to shared cache", msg, it->layout->getID().name);
2640 //fprintf(stderr, "%s at %p to %p for %s\n", seg.name(), seg.mappedAddress(), (char*)seg.mappedAddress()+ seg.size(), it->layout->getID().name);
2654 // fprintf(stderr, "update_dyld_shared_cache: for %s, rebasing dylib into cache for %s\n", archName(), it->layout->getID().name);
2657 throwf("%s in %s", msg, it->layout->getID().name);
2667 //fprintf(stderr, "binding %s\n", it->layout->getID().name);
2671 if ( it->layout->getID().name != NULL )
2672 map[it->layout->getID().name] = binder;
2914 if ( strcmp(seg.name(), "__LINKEDIT") == 0 )
2917 fprintf(stderr, " in segment %s of dylib %s\n", seg.name(), it->layout->getID().name);
3122 fprintf(fmap, "%s\n", it->layout->getID().name);
3128 fprintf(fmap, "\t%16s 0x%0llX -> 0x%0llX\n", seg.name(), seg.newAddress(), seg.newAddress()+seg.size());
3321 // only look at files with .tmp in name