Home
last modified time | relevance | path

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

/frameworks/compile/mclinker/lib/Target/Mips/
DMipsRelocator.h147 virtual void setupRel32DynEntry(FragmentRef& pFragRef, ResolveInfo* pSym) = 0;
149 virtual void setupTLSDynEntry(Fragment& pFrag, ResolveInfo* pSym,
153 bool isLocalReloc(ResolveInfo& pSym) const;
156 void setupRelDynEntry(FragmentRef& pFragRef, ResolveInfo* pSym,
185 void addCopyReloc(ResolveInfo& pSym);
191 const ResolveInfo& pSym);
206 void setupRel32DynEntry(FragmentRef& pFragRef, ResolveInfo* pSym);
207 void setupTLSDynEntry(Fragment& pFrag, ResolveInfo* pSym,
221 void setupRel32DynEntry(FragmentRef& pFragRef, ResolveInfo* pSym);
222 void setupTLSDynEntry(Fragment& pFrag, ResolveInfo* pSym,
DMipsRelocator.cpp110 static Relocator::Address helper_get_PLT_address(ResolveInfo& pSym, in helper_get_PLT_address() argument
112 PLTEntryBase* plt_entry = pParent.getSymPLTMap().lookUp(pSym); in helper_get_PLT_address()
476 void MipsRelocator::addCopyReloc(ResolveInfo& pSym) { in addCopyReloc() argument
479 assert(pSym.outSymbol()->hasFragRef()); in addCopyReloc()
480 relEntry.targetRef().assign(*pSym.outSymbol()->fragRef()); in addCopyReloc()
481 relEntry.setSymInfo(&pSym); in addCopyReloc()
485 const ResolveInfo& pSym) { in defineSymbolforCopyReloc() argument
488 LDSection* bssSectHdr = ResolveInfo::ThreadLocal == pSym.type() in defineSymbolforCopyReloc()
502 Fragment* frag = new FillFragment(0x0, 1, pSym.size()); in defineSymbolforCopyReloc()
507 ResolveInfo::Binding binding = (ResolveInfo::Binding)pSym.binding(); in defineSymbolforCopyReloc()
[all …]
DMipsLDBackend.h38 bool needsLA25Stub(Relocation::Type pType, const mcld::ResolveInfo* pSym);
86 bool hasEntryInStrTab(const LDSymbol& pSym) const;
DMipsLDBackend.cpp75 const mcld::ResolveInfo* pSym) { in needsLA25Stub() argument
82 if (pSym->isLocal()) in needsLA25Stub()
337 bool MipsGNULDBackend::hasEntryInStrTab(const LDSymbol& pSym) const { in hasEntryInStrTab()
338 return ResolveInfo::Section != pSym.type() || m_pGpDispSymbol == &pSym; in hasEntryInStrTab()
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64RelocationHelpers.h85 ResolveInfo& pSym, in helper_get_PLT_address() argument
87 PLTEntryBase* plt_entry = pParent.getSymPLTMap().lookUp(pSym); in helper_get_PLT_address()
117 static inline Relocation& helper_DynRela_init(ResolveInfo* pSym, in helper_DynRela_init() argument
126 if (pType == llvm::ELF::R_AARCH64_RELATIVE || pSym == NULL) in helper_DynRela_init()
129 rel_entry.setSymInfo(pSym); in helper_DynRela_init()
136 static inline bool helper_use_relative_reloc(const ResolveInfo& pSym, in helper_use_relative_reloc() argument
139 if (pSym.isDyn() || pSym.isUndef() || in helper_use_relative_reloc()
140 pParent.getTarget().isSymbolPreemptible(pSym)) in helper_use_relative_reloc()
146 ResolveInfo& pSym, in helper_get_GOT_address() argument
148 AArch64GOTEntry* got_entry = pParent.getSymGOTMap().lookUp(pSym); in helper_get_GOT_address()
DAArch64Relocator.cpp93 void AArch64Relocator::addCopyReloc(ResolveInfo& pSym) { in addCopyReloc() argument
96 assert(pSym.outSymbol()->hasFragRef()); in addCopyReloc()
97 rel_entry.targetRef().assign(*pSym.outSymbol()->fragRef()); in addCopyReloc()
98 rel_entry.setSymInfo(&pSym); in addCopyReloc()
107 const ResolveInfo& pSym) { in defineSymbolforCopyReloc() argument
111 if (ResolveInfo::ThreadLocal == pSym.type()) in defineSymbolforCopyReloc()
128 Fragment* frag = new FillFragment(0x0, 1, pSym.size()); in defineSymbolforCopyReloc()
133 ResolveInfo::Binding binding = (ResolveInfo::Binding)pSym.binding(); in defineSymbolforCopyReloc()
139 pSym.name(), in defineSymbolforCopyReloc()
140 (ResolveInfo::Type)pSym.type(), in defineSymbolforCopyReloc()
[all …]
DAArch64Relocator.h125 void addCopyReloc(ResolveInfo& pSym);
131 const ResolveInfo& pSym);
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonRelocator.cpp27 static Relocation& helper_DynRel_init(ResolveInfo* pSym, in helper_DynRel_init() argument
36 if (pType == llvm::ELF::R_HEX_RELATIVE || pSym == NULL) in helper_DynRel_init()
39 rela_entry.setSymInfo(pSym); in helper_DynRel_init()
46 static bool helper_use_relative_reloc(const ResolveInfo& pSym, in helper_use_relative_reloc() argument
49 if (pSym.isDyn() || pSym.isUndef() || in helper_use_relative_reloc()
50 pFactory.getTarget().isSymbolPreemptible(pSym)) in helper_use_relative_reloc()
84 static Relocator::Address helper_get_GOT_address(ResolveInfo& pSym, in helper_get_GOT_address() argument
86 HexagonGOTEntry* got_entry = pParent.getSymGOTMap().lookUp(pSym); in helper_get_GOT_address()
114 static Relocator::Address helper_get_PLT_address(ResolveInfo& pSym, in helper_get_PLT_address() argument
116 PLTEntryBase* plt_entry = pParent.getSymPLTMap().lookUp(pSym); in helper_get_PLT_address()
[all …]
DHexagonRelocator.h119 void addCopyReloc(ResolveInfo& pSym, HexagonLDBackend& pTarget);
125 const ResolveInfo& pSym,
/frameworks/compile/mclinker/lib/Core/
DModule.cpp56 void Module::CreateAliasList(const ResolveInfo& pSym) { in CreateAliasList() argument
60 result->push_back(&pSym); in CreateAliasList()
69 Module::AliasList* Module::getAliasList(const ResolveInfo& pSym) { in getAliasList() argument
75 if (strcmp((*alias_it)->name(), pSym.name()) == 0) { in getAliasList()
DIRBuilder.cpp591 LDSymbol& pSym, in AddRelocation() argument
598 relocation->setSymInfo(pSym.resolveInfo()); in AddRelocation()
/frameworks/compile/mclinker/lib/Target/X86/
DX86Relocator.cpp31 static Relocation& helper_DynRel_init(ResolveInfo* pSym, in helper_DynRel_init() argument
40 if (pType == llvm::ELF::R_386_RELATIVE || pSym == NULL) in helper_DynRel_init()
43 rel_entry.setSymInfo(pSym); in helper_DynRel_init()
50 static bool helper_use_relative_reloc(const ResolveInfo& pSym, in helper_use_relative_reloc() argument
53 if (pSym.isDyn() || pSym.isUndef() || in helper_use_relative_reloc()
54 pFactory.getTarget().isSymbolPreemptible(pSym)) in helper_use_relative_reloc()
123 static Relocator::Address helper_get_PLT_address(ResolveInfo& pSym, in helper_get_PLT_address() argument
125 PLTEntryBase* plt_entry = pParent.getSymPLTMap().lookUp(pSym); in helper_get_PLT_address()
189 void X86Relocator::addCopyReloc(ResolveInfo& pSym, X86GNULDBackend& pTarget) { in addCopyReloc() argument
192 assert(pSym.outSymbol()->hasFragRef()); in addCopyReloc()
[all …]
DX86Relocator.h89 void addCopyReloc(ResolveInfo& pSym, X86GNULDBackend& pTarget);
95 const ResolveInfo& pSym,
/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp869 void GNULDBackend::emitSymbol32(llvm::ELF::Elf32_Sym& pSym, in emitSymbol32() argument
877 pSym.st_name = pStrtabsize; in emitSymbol32()
880 pSym.st_name = 0; in emitSymbol32()
882 pSym.st_value = pSymbol.value(); in emitSymbol32()
883 pSym.st_size = getSymbolSize(pSymbol); in emitSymbol32()
884 pSym.st_info = getSymbolInfo(pSymbol); in emitSymbol32()
885 pSym.st_other = pSymbol.visibility(); in emitSymbol32()
886 pSym.st_shndx = getSymbolShndx(pSymbol); in emitSymbol32()
890 void GNULDBackend::emitSymbol64(llvm::ELF::Elf64_Sym& pSym, in emitSymbol64() argument
898 pSym.st_name = pStrtabsize; in emitSymbol64()
[all …]
/frameworks/compile/mclinker/lib/Target/ARM/
DARMRelocator.cpp60 static bool helper_use_relative_reloc(const ResolveInfo& pSym, in helper_use_relative_reloc() argument
63 if (pSym.isDyn() || pSym.isUndef() || in helper_use_relative_reloc()
64 pFactory.getTarget().isSymbolPreemptible(pSym)) in helper_use_relative_reloc()
74 static Relocator::Address helper_get_GOT_address(ResolveInfo& pSym, in helper_get_GOT_address() argument
76 ARMGOTEntry* got_entry = pParent.getSymGOTMap().lookUp(pSym); in helper_get_GOT_address()
118 static Relocator::Address helper_get_PLT_address(ResolveInfo& pSym, in helper_get_PLT_address() argument
120 ARMPLT1* plt_entry = pParent.getSymPLTMap().lookUp(pSym); in helper_get_PLT_address()
324 void ARMRelocator::addCopyReloc(ResolveInfo& pSym) { in addCopyReloc() argument
327 assert(pSym.outSymbol()->hasFragRef()); in addCopyReloc()
328 rel_entry.targetRef().assign(*pSym.outSymbol()->fragRef()); in addCopyReloc()
[all …]
DARMRelocator.h118 void addCopyReloc(ResolveInfo& pSym);
124 const ResolveInfo& pSym);
/frameworks/compile/mclinker/include/mcld/Target/
DGNULDBackend.h144 virtual bool hasEntryInStrTab(const LDSymbol& pSym) const;
252 bool symbolNeedsPLT(const ResolveInfo& pSym) const;
256 const ResolveInfo& pSym) const;
259 bool symbolNeedsDynRel(const ResolveInfo& pSym,
265 bool isSymbolPreemptible(const ResolveInfo& pSym) const;
269 bool symbolFinalValueIsKnown(const ResolveInfo& pSym) const;
DTargetLDBackend.h186 virtual bool isSymbolPreemptible(const ResolveInfo& pSym) const = 0;
/frameworks/compile/mclinker/lib/LD/
DIdenticalCodeFolding.cpp38 static bool isSymCtorOrDtor(const ResolveInfo& pSym) { in isSymCtorOrDtor() argument
41 llvm::StringRef name(pSym.name(), pSym.nameSize()); in isSymCtorOrDtor()
45 return isCtorOrDtor(pSym.name(), pSym.nameSize()); in isSymCtorOrDtor()
/frameworks/compile/mclinker/include/mcld/LD/
DLDContext.h69 void addSymbol(LDSymbol* pSym) { m_SymTab.push_back(pSym); } in addSymbol() argument
/frameworks/compile/mclinker/lib/Fragment/
DRelocation.cpp134 void Relocation::setSymInfo(ResolveInfo* pSym) { in setSymInfo() argument
135 m_pSymInfo = pSym; in setSymInfo()
/frameworks/compile/mclinker/include/mcld/
DModule.h158 void CreateAliasList(const ResolveInfo& pSym);
162 AliasList* getAliasList(const ResolveInfo& pSym);
DIRBuilder.h453 LDSymbol& pSym,
/frameworks/compile/mclinker/include/mcld/Fragment/
DRelocation.h106 void setSymInfo(ResolveInfo* pSym);