/external/llvm-project/lld/ELF/ |
D | Target.h | 19 std::string toString(elf::RelType type); 29 virtual RelExpr getRelExpr(RelType type, const Symbol &s, 31 virtual RelType getDynRel(RelType type) const { return 0; } in getDynRel() 36 virtual int64_t getImplicitAddend(const uint8_t *buf, RelType type) const; 37 virtual int getTlsGdRelaxSkip(RelType type) const { return 1; } in getTlsGdRelaxSkip() 60 virtual bool usesOnlyLowPageBits(RelType type) const; 64 virtual bool needsThunk(RelExpr expr, RelType relocType, 82 virtual bool inBranchRange(RelType type, uint64_t src, 87 void relocateNoSym(uint8_t *loc, RelType type, uint64_t val) const { in relocateNoSym() 114 RelType copyRel; [all …]
|
D | Target.cpp | 43 std::string lld::toString(RelType type) { in toString() 132 int64_t TargetInfo::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 136 bool TargetInfo::usesOnlyLowPageBits(RelType type) const { return false; } in usesOnlyLowPageBits() 138 bool TargetInfo::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk() 149 bool TargetInfo::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange() 153 RelExpr TargetInfo::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 157 RelExpr TargetInfo::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 610 uint32_t RelType = r_type; in resolveMIPS64Relocation() local 612 RelType, Addend, in resolveMIPS64Relocation() 615 RelType = r_type2; in resolveMIPS64Relocation() 616 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPS64Relocation() 621 RelType = r_type3; in resolveMIPS64Relocation() 622 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPS64Relocation() 627 RelType); in resolveMIPS64Relocation() 1100 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 1159 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 1160 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() [all …]
|
/external/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 937 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 987 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 988 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() 995 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType, in getMatchingLoRelocation() argument 997 switch (RelType) { in getMatchingLoRelocation() 1069 unsigned RelType = RelI->getType(); in resolveAArch64Branch() local 1075 RelType, 0); in resolveAArch64Branch() 1110 RelType, 0); in resolveAArch64Branch() 1120 uint64_t RelType = RelI->getType(); in processRelocationRef() local 1136 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 930 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 980 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 981 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() 988 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType, in getMatchingLoRelocation() argument 990 switch (RelType) { in getMatchingLoRelocation() 1062 unsigned RelType = RelI->getType(); in resolveAArch64Branch() local 1068 RelType, 0); in resolveAArch64Branch() 1103 RelType, 0); in resolveAArch64Branch() 1113 uint64_t RelType = RelI->getType(); in processRelocationRef() local 1129 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef() [all …]
|
/external/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 40 switch (RE.RelType) { in decodeAddend() 46 << getRelocName(RE.RelType); in decodeAddend() 58 << getRelocName(RE.RelType); in decodeAddend() 76 switch (RE.RelType) { in decodeAddend() 156 MachO::RelocationInfoType RelType, int64_t Addend) const { in encodeAddend() argument 158 switch (RelType) { in encodeAddend() 176 switch (RelType) { in encodeAddend() 307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 333 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 341 if (RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGE21 || in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFX86_64.h | 91 switch (RE.RelType) { in resolveRelocation() 102 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation() 145 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 178 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 184 RelType = COFF::IMAGE_REL_AMD64_ADDR64; in generateRelocationStub() 186 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 208 uint64_t RelType = RelI->getType(); in processRelocationRef() local 237 switch (RelType) { in processRelocationRef() 250 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 251 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() [all …]
|
D | RuntimeDyldMachOARM.h | 67 switch (RE.RelType) { in decodeAddend() 109 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 134 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 137 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 145 switch (RelType) { in processRelocationRef() 153 if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 155 Twine(RelType) + in processRelocationRef() 176 if (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef() 181 (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) ? 4 : 8); in processRelocationRef() 185 if (!Value.SymbolName && (RelType == MachO::ARM_RELOC_BR24 || in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFThumb.h | 79 uint64_t RelType = RelI->getType(); in processRelocationRef() local 88 switch (RelType) { in processRelocationRef() 121 if (RelType != COFF::IMAGE_REL_ARM_SECTION) in processRelocationRef() 126 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 134 switch (RelType) { in processRelocationRef() 141 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 148 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 155 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 161 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() 167 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFI386.h | 58 uint64_t RelType = RelI->getType(); in processRelocationRef() local 74 if (RelType != COFF::IMAGE_REL_I386_SECTION) in processRelocationRef() 84 switch (RelType) { in processRelocationRef() 105 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 109 switch (RelType) { in processRelocationRef() 117 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 124 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 130 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() 146 switch (RE.RelType) { in resolveRelocation()
|
D | RuntimeDyldELFMips.cpp | 18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation() 20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation() 46 RE.RelType); in applyRelocation() 283 uint32_t RelType = r_type; in resolveMIPSN64Relocation() local 285 RelType, Addend, in resolveMIPSN64Relocation() 288 RelType = r_type2; in resolveMIPSN64Relocation() 289 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPSN64Relocation() 294 RelType = r_type3; in resolveMIPSN64Relocation() [all …]
|
D | RuntimeDyldCOFFAArch64.h | 101 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 128 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 136 RelType = INTERNAL_REL_ARM64_LONG_BRANCH26; in generateRelocationStub() 138 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 161 uint64_t RelType = RelI->getType(); in processRelocationRef() local 191 switch (RelType) { in processRelocationRef() 203 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 204 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 247 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 250 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 40 switch (RE.RelType) { in decodeAddend() 46 << getRelocName(RE.RelType); in decodeAddend() 58 << getRelocName(RE.RelType); in decodeAddend() 76 switch (RE.RelType) { in decodeAddend() 156 MachO::RelocationInfoType RelType, int64_t Addend) const { in encodeAddend() argument 158 switch (RelType) { in encodeAddend() 176 switch (RelType) { in encodeAddend() 307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 333 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 341 if (RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGE21 || in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFX86_64.h | 90 switch (RE.RelType) { in resolveRelocation() 101 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation() 145 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 178 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 184 RelType = COFF::IMAGE_REL_AMD64_ADDR64; in generateRelocationStub() 186 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 208 uint64_t RelType = RelI->getType(); in processRelocationRef() local 219 switch (RelType) { in processRelocationRef() 232 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 233 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() [all …]
|
D | RuntimeDyldMachOARM.h | 67 switch (RE.RelType) { in decodeAddend() 109 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 134 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 137 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 145 switch (RelType) { in processRelocationRef() 153 if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 155 Twine(RelType) + in processRelocationRef() 176 if (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef() 181 (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) ? 4 : 8); in processRelocationRef() 185 if (!Value.SymbolName && (RelType == MachO::ARM_RELOC_BR24 || in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFThumb.h | 79 uint64_t RelType = RelI->getType(); in processRelocationRef() local 88 switch (RelType) { in processRelocationRef() 108 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 121 switch (RelType) { in processRelocationRef() 128 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 135 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 142 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 147 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 154 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 163 RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFI386.h | 57 uint64_t RelType = RelI->getType(); in processRelocationRef() local 66 switch (RelType) { in processRelocationRef() 88 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 97 switch (RelType) { in processRelocationRef() 105 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 112 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 117 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 135 switch (RE.RelType) { in resolveRelocation()
|
D | RuntimeDyldELFMips.cpp | 18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation() 20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation() 46 RE.RelType); in applyRelocation() 283 uint32_t RelType = r_type; in resolveMIPSN64Relocation() local 285 RelType, Addend, in resolveMIPSN64Relocation() 288 RelType = r_type2; in resolveMIPSN64Relocation() 289 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPSN64Relocation() 294 RelType = r_type3; in resolveMIPSN64Relocation() [all …]
|
D | RuntimeDyldCOFFAArch64.h | 100 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 127 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 135 RelType = INTERNAL_REL_ARM64_LONG_BRANCH26; in generateRelocationStub() 137 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 160 uint64_t RelType = RelI->getType(); in processRelocationRef() local 172 switch (RelType) { in processRelocationRef() 184 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 185 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 229 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 239 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() [all …]
|
/external/llvm-project/lld/ELF/Arch/ |
D | PPC.cpp | 27 RelExpr getRelExpr(RelType type, const Symbol &s, 29 RelType getDynRel(RelType type) const override; 41 bool needsThunk(RelExpr expr, RelType relocType, const InputFile *file, 45 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override; 48 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 49 int getTlsGdRelaxSkip(RelType type) const override; 197 bool PPC::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk() 210 bool PPC::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange() 217 RelExpr PPC::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 270 RelType PPC::getDynRel(RelType type) const { in getDynRel() [all …]
|
D | AMDGPU.cpp | 30 RelExpr getRelExpr(RelType type, const Symbol &s, 32 RelType getDynRel(RelType type) const override; 83 RelExpr AMDGPU::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 105 RelType AMDGPU::getDynRel(RelType type) const { in getDynRel()
|
D | Mips.cpp | 29 RelExpr getRelExpr(RelType type, const Symbol &s, 31 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 32 RelType getDynRel(RelType type) const override; 37 bool needsThunk(RelExpr expr, RelType type, const InputFile *file, 42 bool usesOnlyLowPageBits(RelType type) const override; 80 RelExpr MIPS<ELFT>::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 202 template <class ELFT> RelType MIPS<ELFT>::getDynRel(RelType type) const { in getDynRel() 360 bool MIPS<ELFT>::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk() 384 int64_t MIPS<ELFT>::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 455 calculateMipsRelChain(uint8_t *loc, RelType type, uint64_t val) { in calculateMipsRelChain() [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 41 switch (RE.RelType) { in decodeAddend() 58 switch (RE.RelType) { in decodeAddend() 134 MachO::RelocationInfoType RelType, int64_t Addend) const { in encodeAddend() argument 136 switch (RelType) { in encodeAddend() 153 switch (RelType) { in encodeAddend() 298 if (RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGE21 || in processRelocationRef() 299 RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12) in processRelocationRef() 316 MachO::RelocationInfoType RelType = in resolveRelocation() local 317 static_cast<MachO::RelocationInfoType>(RE.RelType); in resolveRelocation() 319 switch (RelType) { in resolveRelocation() [all …]
|
D | RuntimeDyldCOFFX86_64.h | 67 switch (RE.RelType) { in resolveRelocation() 78 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation() 128 uint64_t RelType = RelI->getType(); in processRelocationRef() local 134 switch (RelType) { in processRelocationRef() 164 << " RelType: " << RelType << " TargetName: " << TargetName in processRelocationRef() 168 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 179 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
|
D | RuntimeDyldCOFFThumb.h | 57 uint64_t RelType = RelI->getType(); in processRelocationRef() local 66 switch (RelType) { in processRelocationRef() 86 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 95 switch (RelType) { in processRelocationRef() 103 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 110 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 115 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 122 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 131 RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 146 switch (RE.RelType) { in resolveRelocation()
|