Home
last modified time | relevance | path

Searched refs:pSymbol (Results 1 – 24 of 24) sorted by relevance

/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp719 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()
[all …]
DOutputRelocSection.cpp42 Relocation* OutputRelocSection::getEntry(const ResolveInfo& pSymbol, in getEntry() argument
67 Relocation *&Entry = m_SymRelMap[&pSymbol]; in getEntry()
/frameworks/compile/mclinker/lib/MC/
DSymbolCategory.cpp63 SymbolCategory& SymbolCategory::add(LDSymbol& pSymbol) in add() argument
65 m_OutputSymbols.push_back(&pSymbol); in add()
67 assert(NULL != pSymbol.resolveInfo()); in add()
68 Category::Type target = Category::categorize(*pSymbol.resolveInfo()); in add()
91 SymbolCategory& SymbolCategory::forceLocal(LDSymbol& pSymbol) in forceLocal() argument
93 m_OutputSymbols.insert(localEnd(), &pSymbol); in forceLocal()
105 SymbolCategory& SymbolCategory::arrange(LDSymbol& pSymbol, const ResolveInfo& pSourceInfo) in arrange() argument
107 assert(NULL != pSymbol.resolveInfo()); in arrange()
109 Category::Type target = Category::categorize(*pSymbol.resolveInfo()); in arrange()
132 if (m_OutputSymbols[pos] == &pSymbol) in arrange()
/frameworks/compile/mclinker/include/mcld/Target/
DGNULDBackend.h225 size_t getSymbolIdx(LDSymbol* pSymbol) const;
260 uint64_t getSymbolSize(const LDSymbol& pSymbol) const;
262 uint64_t getSymbolInfo(const LDSymbol& pSymbol) const;
264 uint64_t getSymbolValue(const LDSymbol& pSymbol) const;
266 uint64_t getSymbolShndx(const LDSymbol& pSymbol, const Layout& pLayout) const;
309 static bool isDynamicSymbol(const LDSymbol& pSymbol, const Output& pOutput);
DOutputRelocSection.h44 Relocation* getEntry(const ResolveInfo& pSymbol,
DPLT.h76 virtual PLTEntry* getPLTEntry(const ResolveInfo& pSymbol, bool& pExist) = 0;
DGOT.h95 virtual GOTEntry* getEntry(const ResolveInfo& pSymbol, bool& pExist) = 0;
DTargetLDBackend.h130 virtual bool finalizeSymbol(LDSymbol& pSymbol) const = 0;
/frameworks/compile/mclinker/lib/Target/X86/
DX86GOT.h33 const mcld::ResolveInfo& pSymbol,bool& pExist);
36 const mcld::ResolveInfo& pSymbol,bool& pExist);
52 GOTEntry* getEntry(const ResolveInfo& pSymbol, bool& pExist);
DX86PLT.cpp112 PLTEntry* X86PLT::getPLTEntry(const ResolveInfo& pSymbol, bool& pExist) in getPLTEntry() argument
114 X86PLT1 *&PLTEntry = m_PLTEntryMap[&pSymbol]; in getPLTEntry()
119 GOTEntry *&GOTPLTEntry = m_GOT.m_GOTPLTMap[&pSymbol]; in getPLTEntry()
137 GOTEntry* X86PLT::getGOTPLTEntry(const ResolveInfo& pSymbol, bool& pExist) in getGOTPLTEntry() argument
139 GOTEntry *&GOTPLTEntry = m_GOT.m_GOTPLTMap[&pSymbol]; in getGOTPLTEntry()
144 X86PLT1 *&PLTEntry = m_PLTEntryMap[&pSymbol]; in getGOTPLTEntry()
DX86PLT.h54 PLTEntry* getPLTEntry(const ResolveInfo& pSymbol, bool& pExist) ;
56 GOTEntry* getGOTPLTEntry(const ResolveInfo& pSymbol, bool& pExist);
DX86GOTPLT.cpp103 GOTEntry*& X86GOTPLT::lookupGOTPLTMap(const ResolveInfo& pSymbol) in lookupGOTPLTMap() argument
105 return m_GOTPLTMap[&pSymbol]; in lookupGOTPLTMap()
DX86GOTPLT.h58 GOTEntry*& lookupGOTPLTMap(const ResolveInfo& pSymbol);
DX86LDBackend.h182 bool finalizeSymbol(LDSymbol& pSymbol) const;
DX86LDBackend.cpp609 bool X86GNULDBackend::finalizeSymbol(LDSymbol& pSymbol) const in finalizeSymbol()
/frameworks/compile/mclinker/lib/Target/ARM/
DARMPLT.cpp76 PLTEntry* ARMPLT::getPLTEntry(const ResolveInfo& pSymbol, bool& pExist) in getPLTEntry() argument
78 ARMPLT1 *&PLTEntry = m_PLTEntryMap[&pSymbol]; in getPLTEntry()
83 GOTEntry *&GOTPLTEntry = m_GOT.lookupGOTPLTMap(pSymbol); in getPLTEntry()
104 GOTEntry* ARMPLT::getGOTPLTEntry(const ResolveInfo& pSymbol, bool& pExist) in getGOTPLTEntry() argument
106 GOTEntry *&GOTPLTEntry = m_GOT.lookupGOTPLTMap(pSymbol); in getGOTPLTEntry()
111 ARMPLT1 *&PLTEntry = m_PLTEntryMap[&pSymbol]; in getGOTPLTEntry()
DARMGOT.h60 GOTEntry* getEntry(const ResolveInfo& pSymbol, bool& pExist);
68 GOTEntry*& lookupGOTPLTMap(const ResolveInfo& pSymbol);
DARMPLT.h53 PLTEntry* getPLTEntry(const ResolveInfo& pSymbol, bool& pExist) ;
55 GOTEntry* getGOTPLTEntry(const ResolveInfo& pSymbol, bool& pExist);
DARMGOT.cpp126 GOTEntry*& ARMGOT::lookupGOTPLTMap(const ResolveInfo& pSymbol) in lookupGOTPLTMap() argument
128 return m_GOTPLTMap[&pSymbol]; in lookupGOTPLTMap()
DARMLDBackend.h193 bool finalizeSymbol(LDSymbol& pSymbol) const;
DARMLDBackend.cpp787 bool ARMGNULDBackend::finalizeSymbol(LDSymbol& pSymbol) const in finalizeSymbol()
/frameworks/compile/mclinker/include/mcld/MC/
DSymbolCategory.h40 SymbolCategory& add(LDSymbol& pSymbol);
42 SymbolCategory& forceLocal(LDSymbol& pSymbol);
44 SymbolCategory& arrange(LDSymbol& pSymbol, const ResolveInfo& pSourceInfo);
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.cpp238 bool MipsGNULDBackend::isGOTSymbol(const LDSymbol& pSymbol) const in isGOTSymbol()
241 m_LocalGOTSyms.end(), &pSymbol) != m_LocalGOTSyms.end() || in isGOTSymbol()
243 m_GlobalGOTSyms.end(), &pSymbol) != m_GlobalGOTSyms.end(); in isGOTSymbol()
249 LDSymbol& pSymbol, in emitDynamicSymbol() argument
258 entry = m_pSymIndexMap->insert(&pSymbol, sym_exist); in emitDynamicSymbol()
264 sym32.st_value = pSymbol.value(); in emitDynamicSymbol()
265 sym32.st_size = getSymbolSize(pSymbol); in emitDynamicSymbol()
266 sym32.st_info = getSymbolInfo(pSymbol); in emitDynamicSymbol()
267 sym32.st_other = pSymbol.visibility(); in emitDynamicSymbol()
268 sym32.st_shndx = getSymbolShndx(pSymbol, pLayout); in emitDynamicSymbol()
[all …]
DMipsLDBackend.h136 bool finalizeSymbol(LDSymbol& pSymbol) const;
186 bool isGOTSymbol(const LDSymbol& pSymbol) const;
190 LDSymbol& pSymbol,