• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/

Lines Matching refs:sym

230   for (const lld::mach_o::normalized::Symbol &sym : inSymbols) {
232 if ((sym.type & N_TYPE) != N_SECT)
234 if (sym.sect != sectionIndex)
236 outSyms.push_back(&sym);
321 // for (const Symbol *sym : symbols)
322 // llvm::errs() << " sym: "
323 // << llvm::format("0x%08llx ", (uint64_t)sym->value)
324 // << ", " << sym->name << "\n";
345 for (const lld::mach_o::normalized::Symbol *sym : symbols) {
349 if ((lastSym->value != sym->value)
353 lastSym->desc, atomScope(lastSym->scope), sym->value,
357 lastSym = sym;
555 const lld::mach_o::normalized::Symbol *sym = nullptr;
562 sym = &normalizedFile.localSymbols[symbolIndex-numStabs];
564 sym = &normalizedFile.globalSymbols[symbolIndex-numStabs-numLocal];
566 sym = &normalizedFile.undefinedSymbols[symbolIndex-numStabs-numLocal-
574 if ((sym->type & N_TYPE) == N_SECT) {
575 if (sym->sect > normalizedFile.sections.size())
577 + Twine(sym->sect) + ") out of range ");
578 const Section &symSection = normalizedFile.sections[sym->sect-1];
579 uint64_t targetOffsetInSect = sym->value - symSection.address;
587 } else if ((sym->type & N_TYPE) == N_UNDF) {
588 const lld::Atom *target = file.findUndefAtom(sym->name);
593 return llvm::make_error<GenericError>("no undefined atom found for sym");
1464 for (auto &sym : normalizedFile.undefinedSymbols) {
1466 if (sym.value == Hex64(0)) {
1467 file->addUndefinedAtom(sym.name, copyRefs);
1469 file->addTentativeDefAtom(sym.name, atomScope(sym.scope), sym.value,
1470 DefinedAtom::Alignment(1 << (sym.desc >> 8)),
1578 for (auto &sym : normalizedFile.globalSymbols) {
1579 assert((sym.scope & N_EXT) && "only expect external symbols here");
1580 bool weakDef = (sym.desc & N_WEAK_DEF);
1581 file->addExportedSymbol(sym.name, weakDef, copyRefs);