/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86Relocator.cpp | 63 ResolveInfo* rsym = pReloc.symInfo(); in helper_GOT_init() local 65 assert(pParent.getSymGOTMap().lookUp(*rsym) == NULL); in helper_GOT_init() 68 pParent.getSymGOTMap().record(*rsym, *got_entry); in helper_GOT_init() 75 if (helper_use_relative_reloc(*rsym, pParent)) { in helper_GOT_init() 77 rsym, *got_entry, 0x0, llvm::ELF::R_386_RELATIVE, pParent); in helper_GOT_init() 81 rsym, *got_entry, 0x0, llvm::ELF::R_386_GLOB_DAT, pParent); in helper_GOT_init() 102 ResolveInfo* rsym = pReloc.symInfo(); in helper_PLT_init() local 104 assert(pParent.getSymPLTMap().lookUp(*rsym) == NULL); in helper_PLT_init() 107 pParent.getSymPLTMap().record(*rsym, *plt_entry); in helper_PLT_init() 110 assert(pParent.getSymGOTPLTMap().lookUp(*rsym) == NULL && in helper_PLT_init() [all …]
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
D | AArch64Relocator.cpp | 154 ResolveInfo* rsym = pReloc.symInfo(); in scanLocalReloc() local 162 rsym->setReserved(rsym->reserved() | ReserveRel); in scanLocalReloc() 165 Relocation& reloc = helper_DynRela_init(rsym, in scanLocalReloc() 181 Relocation& reloc = helper_DynRela_init(rsym, in scanLocalReloc() 188 rsym->setReserved(rsym->reserved() | ReserveRel); in scanLocalReloc() 197 if (rsym->reserved() & ReserveGOT) in scanLocalReloc() 206 rsym->setReserved(rsym->reserved() | ReserveGOT); in scanLocalReloc() 219 ResolveInfo* rsym = pReloc.symInfo(); in scanGlobalReloc() local 226 if (getTarget().symbolNeedsPLT(*rsym)) { in scanGlobalReloc() 228 if (!(rsym->reserved() & ReservePLT)) { in scanGlobalReloc() [all …]
|
D | AArch64RelocationHelpers.h | 95 ResolveInfo* rsym = pReloc.symInfo(); in helper_PLT_init() local 97 assert(pParent.getSymPLTMap().lookUp(*rsym) == NULL); in helper_PLT_init() 100 pParent.getSymPLTMap().record(*rsym, *plt_entry); in helper_PLT_init() 103 assert(pParent.getSymGOTPLTMap().lookUp(*rsym) == NULL && in helper_PLT_init() 106 pParent.getSymGOTPLTMap().record(*rsym, *gotplt_entry); in helper_PLT_init() 112 rel_entry.setSymInfo(rsym); in helper_PLT_init() 161 ResolveInfo* rsym = pReloc.symInfo(); in helper_GOT_init() local 163 assert(pParent.getSymGOTMap().lookUp(*rsym) == NULL); in helper_GOT_init() 166 pParent.getSymGOTMap().record(*rsym, *got_entry); in helper_GOT_init() 174 if (helper_use_relative_reloc(*rsym, pParent)) { in helper_GOT_init() [all …]
|
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
D | HexagonRelocator.cpp | 59 ResolveInfo* rsym = pReloc.symInfo(); in helper_GOT_init() local 61 assert(pParent.getSymGOTMap().lookUp(*rsym) == NULL); in helper_GOT_init() 64 pParent.getSymGOTMap().record(*rsym, *got_entry); in helper_GOT_init() 71 if (helper_use_relative_reloc(*rsym, pParent)) { in helper_GOT_init() 73 rsym, *got_entry, 0x0, llvm::ELF::R_HEX_RELATIVE, pParent); in helper_GOT_init() 77 rsym, *got_entry, 0x0, llvm::ELF::R_HEX_GLOB_DAT, pParent); in helper_GOT_init() 94 ResolveInfo* rsym = pReloc.symInfo(); in helper_PLT_init() local 96 assert(pParent.getSymPLTMap().lookUp(*rsym) == NULL); in helper_PLT_init() 99 pParent.getSymPLTMap().record(*rsym, *plt_entry); in helper_PLT_init() 101 assert(pParent.getSymGOTPLTMap().lookUp(*rsym) == NULL && in helper_PLT_init() [all …]
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMRelocator.cpp | 85 ResolveInfo* rsym = pReloc.symInfo(); in helper_GOT_init() local 87 assert(pParent.getSymGOTMap().lookUp(*rsym) == NULL); in helper_GOT_init() 90 pParent.getSymGOTMap().record(*rsym, *got_entry); in helper_GOT_init() 98 if (rsym->isLocal() || helper_use_relative_reloc(*rsym, pParent)) { in helper_GOT_init() 107 rel_entry.setSymInfo(rsym); in helper_GOT_init() 127 ResolveInfo* rsym = pReloc.symInfo(); in helper_PLT_init() local 129 assert(pParent.getSymPLTMap().lookUp(*rsym) == NULL); in helper_PLT_init() 133 pParent.getSymPLTMap().record(*rsym, *plt_entry); in helper_PLT_init() 135 assert(pParent.getSymGOTPLTMap().lookUp(*rsym) == NULL && in helper_PLT_init() 138 pParent.getSymGOTPLTMap().record(*rsym, *gotplt_entry); in helper_PLT_init() [all …]
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsRelocator.cpp | 92 ResolveInfo* rsym = pReloc.parent().symInfo(); in helper_PLT_init() local 93 assert(pParent.getSymPLTMap().lookUp(*rsym) == NULL && "PLT entry exists"); in helper_PLT_init() 97 pParent.getSymPLTMap().record(*rsym, *pltEntry); in helper_PLT_init() 99 assert(pParent.getSymGOTPLTMap().lookUp(*rsym) == NULL && in helper_PLT_init() 102 pParent.getSymGOTPLTMap().record(*rsym, *gotpltEntry); in helper_PLT_init() 107 relEntry->setSymInfo(rsym); in helper_PLT_init() 189 ResolveInfo* rsym = pReloc.symInfo(); in scanRelocation() local 190 assert(rsym != NULL && in scanRelocation() 195 rsym == getTarget().getGpDispSymbol()->resolveInfo()) in scanRelocation() 207 if (isLocalReloc(*rsym)) in scanRelocation() [all …]
|
D | MipsLA25Stub.cpp | 56 const ResolveInfo* rsym = pReloc.symInfo(); in isMyDuty() local 58 if (!rsym->isDefine()) in isMyDuty() 61 if (rsym->isDyn() || rsym->isUndef()) in isMyDuty() 64 if (!m_Target.hasNonPICBranch(rsym)) in isMyDuty()
|
D | MipsLDBackend.h | 40 void addNonPICBranchSym(ResolveInfo* rsym); 41 bool hasNonPICBranch(const ResolveInfo* rsym) const;
|
D | MipsLDBackend.cpp | 88 void MipsGNULDBackend::addNonPICBranchSym(ResolveInfo* rsym) { in addNonPICBranchSym() argument 89 m_HasNonPICBranchSyms.insert(rsym); in addNonPICBranchSym() 92 bool MipsGNULDBackend::hasNonPICBranch(const ResolveInfo* rsym) const { in hasNonPICBranch() 93 return m_HasNonPICBranchSyms.count(rsym); in hasNonPICBranch()
|