Lines Matching refs:sym
236 Symbol *sym = symtab->addSymbol(Defined{nullptr, name, STB_GLOBAL, STV_HIDDEN,
238 return cast<Defined>(sym);
662 Symbol &sym = file->getRelocTargetSym(rel);
663 if (sym.isLocal())
664 sym.used = true;
693 static bool shouldKeepInSymtab(const Defined &sym) {
694 if (sym.isSection())
699 if (config->copyRelocs && sym.used)
707 if (config->emachine == EM_ARM && sym.section &&
708 sym.section->type == SHT_ARM_EXIDX)
721 StringRef name = sym.getName();
729 SectionBase *sec = sym.section;
809 auto *sym =
812 in.symTab->addSymbol(sym);
1325 auto addSym = [&](Symbol &sym) {
1326 auto it = symbolOrder.find(sym.getName());
1332 maybeWarnUnorderableSymbol(&sym);
1334 if (auto *d = dyn_cast<Defined>(&sym)) {
1344 for (Symbol *sym : symtab->symbols())
1345 if (!sym->isLazy())
1346 addSym(*sym);
1349 for (Symbol *sym : file->getSymbols())
1350 if (sym->isLocal())
1351 addSym(*sym);
1941 for (Symbol *sym : symtab->symbols())
1942 sym->isPreemptible = computeIsPreemptible(*sym);
1977 for (Symbol *sym : symtab->symbols())
1978 if (sym->isUndefined() && !sym->isWeak())
1979 if (auto *f = dyn_cast_or_null<SharedFile>(sym->file))
1982 toString(*sym) + " [--no-allow-shlib-undefined]");
1987 for (Symbol *sym : symtab->symbols()) {
1988 if (!includeInSymtab(*sym))
1991 in.symTab->addSymbol(sym);
1993 if (sym->includeInDynsym()) {
1994 partitions[sym->partition - 1].dynSymTab->addSymbol(sym);
1995 if (auto *file = dyn_cast_or_null<SharedFile>(sym->file))
1996 if (file->isNeeded && !sym->isUndefined())
1997 addVerneed(sym);
2006 syms.insert(e.sym);
2008 if (reloc.sym && !reloc.useSymVA && syms.insert(reloc.sym).second)
2009 part.dynSymTab->addSymbol(reloc.sym);
2040 Symbol *sym = symtab->addSymbol(Undefined{
2042 sym->isPreemptible = true;
2043 partitions[0].dynSymTab->addSymbol(sym);