• Home
  • Raw
  • Download

Lines Matching refs:pSymbol

719 uint64_t GNULDBackend::getSymbolSize(const LDSymbol& pSymbol) const  in getSymbolSize()
723 if (pSymbol.isDyn() || pSymbol.desc() == ResolveInfo::Undefined) in getSymbolSize()
725 return pSymbol.resolveInfo()->size(); in getSymbolSize()
729 uint64_t GNULDBackend::getSymbolInfo(const LDSymbol& pSymbol) const in getSymbolInfo()
733 if (pSymbol.resolveInfo()->isLocal()) in getSymbolInfo()
735 else if (pSymbol.resolveInfo()->isGlobal()) in getSymbolInfo()
737 else if (pSymbol.resolveInfo()->isWeak()) in getSymbolInfo()
739 else if (pSymbol.resolveInfo()->isAbsolute()) { in getSymbolInfo()
744 if (pSymbol.visibility() == llvm::ELF::STV_INTERNAL || in getSymbolInfo()
745 pSymbol.visibility() == llvm::ELF::STV_HIDDEN) in getSymbolInfo()
748 return (pSymbol.resolveInfo()->type() | (bind << 4)); in getSymbolInfo()
752 uint64_t GNULDBackend::getSymbolValue(const LDSymbol& pSymbol) const in getSymbolValue()
754 if (pSymbol.isDyn()) in getSymbolValue()
757 return pSymbol.value(); in getSymbolValue()
762 GNULDBackend::getSymbolShndx(const LDSymbol& pSymbol, const Layout& pLayout) const in getSymbolShndx() argument
764 if (pSymbol.resolveInfo()->isAbsolute()) in getSymbolShndx()
766 if (pSymbol.resolveInfo()->isCommon()) in getSymbolShndx()
768 if (pSymbol.resolveInfo()->isUndef() || pSymbol.isDyn()) in getSymbolShndx()
771 if (pSymbol.resolveInfo()->isLocal()) { in getSymbolShndx()
772 switch (pSymbol.type()) { in getSymbolShndx()
779 assert(pSymbol.hasFragRef()); in getSymbolShndx()
780 return pLayout.getOutputLDSection(*pSymbol.fragRef()->frag())->index(); in getSymbolShndx()
784 size_t GNULDBackend::getSymbolIdx(LDSymbol* pSymbol) const in getSymbolIdx()
786 HashTableType::iterator entry = m_pSymIndexMap->find(pSymbol); in getSymbolIdx()
1005 bool GNULDBackend::isDynamicSymbol(const LDSymbol& pSymbol, in isDynamicSymbol() argument
1010 if (pSymbol.binding() == ResolveInfo::Local) in isDynamicSymbol()
1016 if (pSymbol.resolveInfo()->visibility() == ResolveInfo::Default || in isDynamicSymbol()
1017 pSymbol.resolveInfo()->visibility() == ResolveInfo::Protected) in isDynamicSymbol()