| /llvm-project-15.0.7/lld/ELF/ |
| H A D | Target.h | 32 virtual RelType getDynRel(RelType type) const { return 0; } in getDynRel() 119 RelType copyRel; 120 RelType gotRel; 121 RelType pltRel; 122 RelType relativeRel; 123 RelType iRelativeRel; 124 RelType symbolicRel; 125 RelType tlsDescRel; 126 RelType tlsGotRel; 127 RelType tlsModuleIndexRel; [all …]
|
| H A D | Target.cpp | 43 std::string lld::toString(RelType type) { in toString() 123 int64_t TargetInfo::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 129 bool TargetInfo::usesOnlyLowPageBits(RelType type) const { return false; } in usesOnlyLowPageBits() 131 bool TargetInfo::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk() 142 bool TargetInfo::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange() 146 RelExpr TargetInfo::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 150 RelExpr TargetInfo::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
|
| H A D | Relocations.cpp | 152 static RelType getMipsPairType(RelType type, bool isLocal) { in getMipsPairType() 476 RelType type = rel.getType(config->isMips64EL); in computeMipsAddend() 503 RelType type = rel.getType(config->isMips64EL); in computeAddend() 856 RelType RelocationScanner::getMipsN32RelType(RelTy *&rel) const { in getMipsN32RelType() 857 RelType type = 0; in getMipsN32RelType() 868 RelType type) { in addRelativeReloc() 1050 RelType rel = target.getDynRel(type); in processAux() 1178 static unsigned handleTlsRelocation(RelType type, Symbol &sym, in handleTlsRelocation() 1298 RelType type; in scanOne() 1458 RelType type = rel.getType(false); in checkPPC64TLSRelax() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldELF.cpp | 1094 switch (RelType) { in getMatchingLoRelocation() 1172 RelType, 0); in resolveAArch64Branch() 1327 if (RelType == ELF::R_ARM_PC24 || RelType == ELF::R_ARM_CALL || in processRelocationRef() 1339 RelType, 0); in processRelocationRef() 1363 if (RelType == ELF::R_ARM_PREL31 || RelType == ELF::R_ARM_TARGET1 || in processRelocationRef() 1366 } else if (RelType == ELF::R_ARM_MOVW_ABS_NC || RelType == ELF::R_ARM_MOVT_ABS) { in processRelocationRef() 1423 } else if (RelType == ELF::R_MIPS_HI16 || RelType == ELF::R_MIPS_PCHI16) { in processRelocationRef() 1427 } else if (RelType == ELF::R_MIPS_LO16 || RelType == ELF::R_MIPS_PCLO16) { in processRelocationRef() 1433 RelType == getMatchingLoRelocation(Reloc.RelType) && in processRelocationRef() 1669 switch (RelType) { in processRelocationRef() [all …]
|
| H A D | RuntimeDyldImpl.h | 39 #define UNIMPLEMENTED_RELOC(RelType) \ argument 40 case RelType: \ 41 return make_error<RuntimeDyldError>("Unimplemented relocation: " #RelType) 126 uint32_t RelType; variable 154 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 159 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 165 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 171 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry() 182 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A 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() 158 switch (RelType) { in encodeAddend() 176 switch (RelType) { in encodeAddend() 307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 343 RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) in processRelocationRef() 360 MachO::RelocationInfoType RelType = in resolveRelocation() local 361 static_cast<MachO::RelocationInfoType>(RE.RelType); in resolveRelocation() [all …]
|
| H A D | RuntimeDyldCOFFX86_64.h | 91 switch (RE.RelType) { in resolveRelocation() 102 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation() 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() 267 << " RelType: " << RelType << " TargetName: " in processRelocationRef() [all …]
|
| H A D | RuntimeDyldMachOARM.h | 66 switch (RE.RelType) { in decodeAddend() 108 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 133 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 136 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 144 switch (RelType) { in processRelocationRef() 152 if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 175 if (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef() 188 if (RE.RelType == MachO::ARM_RELOC_BR24 || in processRelocationRef() 189 RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef() 217 switch (RE.RelType) { in resolveRelocation() [all …]
|
| H A D | RuntimeDyldCOFFThumb.h | 78 uint64_t RelType = RelI->getType(); in processRelocationRef() local 87 switch (RelType) { in processRelocationRef() 120 if (RelType != COFF::IMAGE_REL_ARM_SECTION) in processRelocationRef() 125 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 133 switch (RelType) { in processRelocationRef() 140 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 147 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 154 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 160 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() 174 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() [all …]
|
| H A 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()
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | RuntimeDyldMachOI386.h | 41 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 44 if (RelType == MachO::GENERIC_RELOC_SECTDIFF || in processRelocationRef() 45 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) in processRelocationRef() 48 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 51 "type: " + Twine(RelType)).str()); in processRelocationRef() 54 switch (RelType) { in processRelocationRef() 59 if (RelType > MachO::GENERIC_RELOC_TLV) in processRelocationRef() 61 Twine(RelType) + in processRelocationRef() 108 switch (RE.RelType) { in resolveRelocation()
|
| H A D | RuntimeDyldMachOX86_64.h | 41 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 43 if (RelType == MachO::X86_64_RELOC_SUBTRACTOR) in processRelocationRef() 61 switch (RelType) { in processRelocationRef() 64 if (RelType > MachO::X86_64_RELOC_TLV) in processRelocationRef() 66 Twine(RelType) + in processRelocationRef() 71 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef() 72 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef() 99 switch (RE.RelType) { in resolveRelocation()
|
| /llvm-project-15.0.7/lld/ELF/Arch/ |
| H A D | PPC.cpp | 30 RelExpr getRelExpr(RelType type, const Symbol &s, 32 RelType getDynRel(RelType type) const override; 45 bool needsThunk(RelExpr expr, RelType relocType, const InputFile *file, 52 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 53 int getTlsGdRelaxSkip(RelType type) const override; 219 RelExpr PPC::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 273 RelType PPC::getDynRel(RelType type) const { in getDynRel() 293 static std::pair<RelType, uint64_t> fromDTPREL(RelType type, uint64_t val) { in fromDTPREL() 312 RelType newType; in relocate() 380 RelExpr PPC::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() [all …]
|
| H A D | Mips.cpp | 28 RelExpr getRelExpr(RelType type, const Symbol &s, 31 RelType getDynRel(RelType type) const override; 36 bool needsThunk(RelExpr expr, RelType type, const InputFile *file, 41 bool usesOnlyLowPageBits(RelType type) const override; 77 RelExpr MIPS<ELFT>::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 200 template <class ELFT> RelType MIPS<ELFT>::getDynRel(RelType type) const { in getDynRel() 495 RelType type2 = (type >> 8) & 0xff; in calculateMipsRelChain() 496 RelType type3 = (type >> 16) & 0xff; in calculateMipsRelChain() 508 static bool isBranchReloc(RelType type) { in isBranchReloc() 513 static bool isMicroBranchReloc(RelType type) { in isMicroBranchReloc() [all …]
|
| H A D | AMDGPU.cpp | 34 RelExpr getRelExpr(RelType type, const Symbol &s, 36 RelType getDynRel(RelType type) const override; 157 RelExpr AMDGPU::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 180 RelType AMDGPU::getDynRel(RelType type) const { in getDynRel()
|
| H A D | AArch64.cpp | 33 RelExpr getRelExpr(RelType type, const Symbol &s, 35 RelType getDynRel(RelType type) const override; 36 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 41 bool needsThunk(RelExpr expr, RelType type, const InputFile *file, 45 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override; 46 bool usesOnlyLowPageBits(RelType type) const override; 49 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 80 RelExpr AArch64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 162 RelExpr AArch64::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 171 bool AArch64::usesOnlyLowPageBits(RelType type) const { in usesOnlyLowPageBits() [all …]
|
| H A D | X86.cpp | 25 int getTlsGdRelaxSkip(RelType type) const override; 26 RelExpr getRelExpr(RelType type, const Symbol &s, 28 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 30 RelType getDynRel(RelType type) const override; 39 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 73 int X86::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip() 78 RelExpr X86::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 163 RelExpr X86::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 190 RelType X86::getDynRel(RelType type) const { in getDynRel() 245 int64_t X86::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
|
| H A D | PPC64.cpp | 362 int getTlsGdRelaxSkip(RelType type) const override; 364 RelExpr getRelExpr(RelType type, const Symbol &s, 366 RelType getDynRel(RelType type) const override; 382 RelExpr adjustGotPcExpr(RelType type, int64_t addend, 602 int PPC64::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip() 944 RelExpr PPC64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 1058 RelType PPC64::getDynRel(RelType type) const { in getDynRel() 1119 static std::pair<RelType, uint64_t> toAddr16Rel(RelType type, uint64_t val) { in toAddr16Rel() 1191 static bool isTocOptType(RelType type) { in isTocOptType() 1205 RelType type = rel.type; in relocate() [all …]
|
| H A D | ARM.cpp | 27 RelExpr getRelExpr(RelType type, const Symbol &s, 29 RelType getDynRel(RelType type) const override; 30 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 38 bool needsThunk(RelExpr expr, RelType type, const InputFile *file, 42 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override; 82 RelExpr ARM::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 179 RelType ARM::getDynRel(RelType type) const { in getDynRel() 294 bool ARM::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk() 368 bool ARM::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange() 399 static void stateChangeWarning(uint8_t *loc, RelType relt, const Symbol &s) { in stateChangeWarning() [all …]
|
| H A D | Hexagon.cpp | 29 RelExpr getRelExpr(RelType type, const Symbol &s, 31 RelType getDynRel(RelType type) const override; 90 RelExpr Hexagon::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 384 RelType Hexagon::getDynRel(RelType type) const { in getDynRel()
|
| H A D | X86_64.cpp | 28 int getTlsGdRelaxSkip(RelType type) const override; 29 RelExpr getRelExpr(RelType type, const Symbol &s, 31 RelType getDynRel(RelType type) const override; 40 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 44 RelExpr adjustGotPcExpr(RelType type, int64_t addend, 101 int X86_64::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip() 318 RelExpr X86_64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 423 RelType X86_64::getDynRel(RelType type) const { in getDynRel() 692 int64_t X86_64::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 803 RelExpr X86_64::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
|
| H A D | RISCV.cpp | 29 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 36 RelType getDynRel(RelType type) const override; 37 RelExpr getRelExpr(RelType type, const Symbol &s, 153 int64_t RISCV::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 232 RelType RISCV::getDynRel(RelType type) const { in getDynRel() 234 : static_cast<RelType>(R_RISCV_NONE); in getDynRel() 237 RelExpr RISCV::getRelExpr(const RelType type, const Symbol &s, in getRelExpr() 500 std::unique_ptr<RelType[]> relocTypes; 515 std::make_unique<RelType[]>(sec->relocations.size()); in initSymbolAnchors() 769 } else if (RelType newType = aux.relocTypes[i]) { in riscvFinalizeRelax()
|
| H A D | MSP430.cpp | 35 RelExpr getRelExpr(RelType type, const Symbol &s, 47 RelExpr MSP430::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
|