Lines Matching defs:dylib
666 // N_EXT | N_PEXT: Linkage unit (think: dylib) scoped. These go in the
1559 // The path can point to either a dylib or a .tbd file.
1563 error("could not read dylib file at " + path);
1596 stem, config->librarySearchPaths, {".tbd", ".dylib", ".so"}))
1658 // If a re-exported dylib is public (lives in /usr/lib or
1700 currentVersion = read32le(&c->dylib.current_version);
1701 compatibilityVersion = read32le(&c->dylib.compatibility_version);
1703 reinterpret_cast<const char *>(cmd) + read32le(&c->dylib.name);
1707 error(toString(this) + ": dylib missing LC_ID_DYLIB load command");
1748 ": dylib has both LC_DYLD_INFO_ONLY and LC_DYLD_EXPORTS_TRIE");
1803 reinterpret_cast<const char *>(c) + read32le(&c->dylib.name);
1814 reinterpret_cast<const char *>(c) + read32le(&c->dylib.name);
1815 DylibFile *dylib = findDylib(dylibPath, umbrella, nullptr);
1816 if (!dylib)
1826 "/usr/lib/system/libsystem_kernel.dylib",
1827 "/usr/lib/system/libsystem_platform.dylib",
1828 "/usr/lib/system/libsystem_pthread.dylib"};
1984 // If this dylib was explicitly linked, but at least one of the symbols
1986 // referenced, then that synthetic dylib fulfils the explicit linkedness
1987 // and we can deadstrip this dylib if it's unreferenced.
1988 for (const auto *dylib : extraDylibs)
1989 if (dylib->isReferenced())
1998 for (DylibFile *dylib : extraDylibs)
1999 if (dylib->installName == installName) {
2001 // request the same dylib, but with different versions.
2002 return dylib;
2005 auto *dylib = make<DylibFile>(umbrella == this ? nullptr : umbrella);
2006 dylib->installName = saver().save(installName);
2007 dylib->currentVersion = currentVersion;
2008 dylib->compatibilityVersion = compatVersion;
2009 extraDylibs.push_back(dylib);
2010 return dylib;
2089 // a dylib with given name and version.
2090 auto *dylib = getSyntheticDylib(installName, newCurrentVersionForSymbol,
2101 dylib->symbols.push_back(symtab->addDylib(
2102 saver().save(symbolName), dylib, /*isWeakDef=*/false, /*isTlv=*/false));
2106 // A $ld$previous$ symbol without symbol name modifies the dylib it's in.
2149 warn("using '-application_extension' with unsafe dylib: " + toString(this));