Home
last modified time | relevance | path

Searched refs:rsym (Results 1 – 10 of 10) sorted by relevance

/frameworks/compile/mclinker/lib/Target/X86/
DX86Relocator.cpp71 ResolveInfo* rsym = pReloc.symInfo(); in helper_GOT_init() local
73 assert(NULL == pParent.getSymGOTMap().lookUp(*rsym)); in helper_GOT_init()
76 pParent.getSymGOTMap().record(*rsym, *got_entry); in helper_GOT_init()
84 if (helper_use_relative_reloc(*rsym, pParent)) { in helper_GOT_init()
85 helper_DynRel_init(rsym, *got_entry, 0x0, llvm::ELF::R_386_RELATIVE, in helper_GOT_init()
90 helper_DynRel_init(rsym, *got_entry, 0x0, llvm::ELF::R_386_GLOB_DAT, in helper_GOT_init()
117 ResolveInfo* rsym = pReloc.symInfo(); in helper_PLT_init() local
119 assert(NULL == pParent.getSymPLTMap().lookUp(*rsym)); in helper_PLT_init()
122 pParent.getSymPLTMap().record(*rsym, *plt_entry); in helper_PLT_init()
125 assert(NULL == pParent.getSymGOTPLTMap().lookUp(*rsym) && in helper_PLT_init()
[all …]
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64Relocator.cpp159 ResolveInfo* rsym = pReloc.symInfo(); in scanLocalReloc() local
167 rsym->setReserved(rsym->reserved() | ReserveRel); in scanLocalReloc()
170 Relocation& reloc = helper_DynRela_init(rsym, in scanLocalReloc()
186 Relocation& reloc = helper_DynRela_init(rsym, in scanLocalReloc()
191 rsym->setReserved(rsym->reserved() | ReserveRel); in scanLocalReloc()
200 if (rsym->reserved() & ReserveGOT) in scanLocalReloc()
209 rsym->setReserved(rsym->reserved() | ReserveGOT); in scanLocalReloc()
223 ResolveInfo* rsym = pReloc.symInfo(); in scanGlobalReloc() local
230 if (getTarget().symbolNeedsPLT(*rsym)) { in scanGlobalReloc()
232 if (!(rsym->reserved() & ReservePLT)){ in scanGlobalReloc()
[all …]
DAArch64RelocationHelpers.h108 ResolveInfo* rsym = pReloc.symInfo(); in helper_PLT_init() local
110 assert(NULL == pParent.getSymPLTMap().lookUp(*rsym)); in helper_PLT_init()
113 pParent.getSymPLTMap().record(*rsym, *plt_entry); in helper_PLT_init()
116 assert(NULL == pParent.getSymGOTPLTMap().lookUp(*rsym) && in helper_PLT_init()
119 pParent.getSymGOTPLTMap().record(*rsym, *gotplt_entry); in helper_PLT_init()
125 rel_entry.setSymInfo(rsym); in helper_PLT_init()
182 ResolveInfo* rsym = pReloc.symInfo(); in helper_GOT_init() local
184 assert(NULL == pParent.getSymGOTMap().lookUp(*rsym)); in helper_GOT_init()
187 pParent.getSymGOTMap().record(*rsym, *got_entry); in helper_GOT_init()
196 if (helper_use_relative_reloc(*rsym, pParent)) { in helper_GOT_init()
[all …]
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonRelocator.cpp58 ResolveInfo *rsym = pReloc.symInfo(); in helper_GOT_init() local
60 assert(NULL == pParent.getSymGOTMap().lookUp(*rsym)); in helper_GOT_init()
63 pParent.getSymGOTMap().record(*rsym, *got_entry); in helper_GOT_init()
71 if (helper_use_relative_reloc(*rsym, pParent)) { in helper_GOT_init()
72 helper_DynRel_init(rsym, *got_entry, 0x0, llvm::ELF::R_HEX_RELATIVE, in helper_GOT_init()
77 helper_DynRel_init(rsym, *got_entry, 0x0, llvm::ELF::R_HEX_GLOB_DAT, in helper_GOT_init()
95 ResolveInfo *rsym = pReloc.symInfo(); in helper_PLT_init() local
97 assert(NULL == pParent.getSymPLTMap().lookUp(*rsym)); in helper_PLT_init()
100 pParent.getSymPLTMap().record(*rsym, *plt_entry); in helper_PLT_init()
102 assert(NULL == pParent.getSymGOTPLTMap().lookUp(*rsym) && in helper_PLT_init()
[all …]
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsRelocator.cpp233 ResolveInfo* rsym = pReloc.symInfo(); in scanRelocation() local
234 assert(NULL != rsym && "ResolveInfo of relocation not set while scanRelocation"); in scanRelocation()
238 rsym == getTarget().getGpDispSymbol()->resolveInfo()) in scanRelocation()
250 if (isLocalReloc(*rsym)) in scanRelocation()
261 if (rsym->isUndef() && !rsym->isDyn() && !rsym->isWeak() && !rsym->isNull()) in scanRelocation()
295 ResolveInfo* rsym = pReloc.parent().symInfo(); in scanLocalReloc() local
309 rsym->setReserved(rsym->reserved() | ReserveRel); in scanLocalReloc()
345 if (getTarget().getGOT().reserveLocalEntry(*rsym, in scanLocalReloc()
372 fatal(diag::unknown_relocation) << (int)pReloc.type() << rsym->name(); in scanLocalReloc()
380 ResolveInfo* rsym = pReloc.parent().symInfo(); in scanGlobalReloc() local
[all …]
DMipsLA25Stub.cpp69 const ResolveInfo* rsym = pReloc.symInfo(); in isMyDuty() local
71 if (!rsym->isDefine()) in isMyDuty()
74 if (rsym->isDyn() || rsym->isUndef()) in isMyDuty()
77 if (!m_Target.hasNonPICBranch(rsym)) in isMyDuty()
DMipsLDBackend.h39 void addNonPICBranchSym(ResolveInfo* rsym);
40 bool hasNonPICBranch(const ResolveInfo* rsym) const;
DMipsRelocator.h108 uint64_t getPLTAddress(ResolveInfo& rsym);
DMipsLDBackend.cpp83 void MipsGNULDBackend::addNonPICBranchSym(ResolveInfo* rsym) in addNonPICBranchSym() argument
85 m_HasNonPICBranchSyms.insert(rsym); in addNonPICBranchSym()
88 bool MipsGNULDBackend::hasNonPICBranch(const ResolveInfo* rsym) const in hasNonPICBranch()
90 return m_HasNonPICBranchSyms.count(rsym); in hasNonPICBranch()
/frameworks/compile/mclinker/lib/Target/ARM/
DARMRelocator.cpp96 ResolveInfo* rsym = pReloc.symInfo(); in helper_GOT_init() local
98 assert(NULL == pParent.getSymGOTMap().lookUp(*rsym)); in helper_GOT_init()
101 pParent.getSymGOTMap().record(*rsym, *got_entry); in helper_GOT_init()
110 if (rsym->isLocal() || helper_use_relative_reloc(*rsym, pParent)) { in helper_GOT_init()
120 rel_entry.setSymInfo(rsym); in helper_GOT_init()
146 ResolveInfo* rsym = pReloc.symInfo(); in helper_PLT_init() local
148 assert(NULL == pParent.getSymPLTMap().lookUp(*rsym)); in helper_PLT_init()
152 pParent.getSymPLTMap().record(*rsym, *plt_entry); in helper_PLT_init()
154 assert(NULL == pParent.getSymGOTPLTMap().lookUp(*rsym) && in helper_PLT_init()
157 pParent.getSymGOTPLTMap().record(*rsym, *gotplt_entry); in helper_PLT_init()
[all …]