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");
1740 ": dylib has both LC_DYLD_INFO_ONLY and LC_DYLD_EXPORTS_TRIE");
1795 reinterpret_cast<const char *>(c) + read32le(&c->dylib.name);
1806 reinterpret_cast<const char *>(c) + read32le(&c->dylib.name);
1807 DylibFile *dylib = findDylib(dylibPath, umbrella, nullptr);
1808 if (!dylib)
1818 "/usr/lib/system/libsystem_kernel.dylib",
1819 "/usr/lib/system/libsystem_platform.dylib",
1820 "/usr/lib/system/libsystem_pthread.dylib"};
1970 // If this dylib was explicitly linked, but at least one of the symbols
1972 // referenced, then that synthetic dylib fulfils the explicit linkedness
1973 // and we can deadstrip this dylib if it's unreferenced.
1974 for (const auto *dylib : extraDylibs)
1975 if (dylib->isReferenced())
1984 for (DylibFile *dylib : extraDylibs)
1985 if (dylib->installName == installName) {
1987 // request the same dylib, but with different versions.
1988 return dylib;
1991 auto *dylib = make<DylibFile>(umbrella == this ? nullptr : umbrella);
1992 dylib->installName = saver().save(installName);
1993 dylib->currentVersion = currentVersion;
1994 dylib->compatibilityVersion = compatVersion;
1995 extraDylibs.push_back(dylib);
1996 return dylib;
2075 // a dylib with given name and version.
2076 auto *dylib = getSyntheticDylib(installName, newCurrentVersionForSymbol,
2087 dylib->symbols.push_back(symtab->addDylib(
2088 saver().save(symbolName), dylib, /*isWeakDef=*/false, /*isTlv=*/false));
2092 // A $ld$previous$ symbol without symbol name modifies the dylib it's in.
2135 warn("using '-application_extension' with unsafe dylib: " + toString(this));