/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | Target.h | 35 virtual RelType getDynRel(RelType type) const { return 0; } in getDynRel() 125 RelType copyRel; 126 RelType gotRel; 127 RelType pltRel; 128 RelType relativeRel; 129 RelType iRelativeRel; 130 RelType symbolicRel; 131 RelType tlsDescRel; 132 RelType tlsGotRel; 133 RelType tlsModuleIndexRel; [all …]
|
H A D | Target.cpp | 43 std::string lld::toString(RelType type) { in toString() 127 int64_t TargetInfo::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 133 bool TargetInfo::usesOnlyLowPageBits(RelType type) const { return false; } in usesOnlyLowPageBits() 135 bool TargetInfo::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk() 146 bool TargetInfo::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange() 150 RelExpr TargetInfo::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 154 RelExpr TargetInfo::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldELF.cpp | 1099 switch (RelType) { in getMatchingLoRelocation() 1177 RelType, 0); in resolveAArch64Branch() 1333 if (RelType == ELF::R_ARM_PC24 || RelType == ELF::R_ARM_CALL || in processRelocationRef() 1345 RelType, 0); in processRelocationRef() 1369 if (RelType == ELF::R_ARM_PREL31 || RelType == ELF::R_ARM_TARGET1 || in processRelocationRef() 1372 } else if (RelType == ELF::R_ARM_MOVW_ABS_NC || RelType == ELF::R_ARM_MOVT_ABS) { in processRelocationRef() 1429 } else if (RelType == ELF::R_MIPS_HI16 || RelType == ELF::R_MIPS_PCHI16) { in processRelocationRef() 1433 } else if (RelType == ELF::R_MIPS_LO16 || RelType == ELF::R_MIPS_PCLO16) { in processRelocationRef() 1439 RelType == getMatchingLoRelocation(Reloc.RelType) && in processRelocationRef() 1675 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()
|
/freebsd/contrib/llvm-project/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() 185 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 191 RelType = COFF::IMAGE_REL_AMD64_ADDR64; in generateRelocationStub() 193 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 215 uint64_t RelType = RelI->getType(); in processRelocationRef() local 244 switch (RelType) { in processRelocationRef() 257 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 258 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 274 << " 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 | 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 | RuntimeDyldCOFFThumb.h | 101 uint64_t RelType = RelI->getType(); in processRelocationRef() local 110 switch (RelType) { in processRelocationRef() 143 if (RelType != COFF::IMAGE_REL_ARM_SECTION) in processRelocationRef() 148 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 156 switch (RelType) { in processRelocationRef() 163 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 170 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 177 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 183 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() 197 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() [all …]
|
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 | 102 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 129 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 137 RelType = INTERNAL_REL_ARM64_LONG_BRANCH26; in generateRelocationStub() 139 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 162 uint64_t RelType = RelI->getType(); in processRelocationRef() local 192 switch (RelType) { in processRelocationRef() 204 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 205 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 248 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 251 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()
|
/freebsd/contrib/llvm-project/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; 218 RelExpr PPC::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 272 RelType PPC::getDynRel(RelType type) const { in getDynRel() 299 static std::pair<RelType, uint64_t> fromDTPREL(RelType type, uint64_t val) { in fromDTPREL() 318 RelType newType; in relocate() 386 RelExpr PPC::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() [all …]
|
H A D | AMDGPU.cpp | 34 RelExpr getRelExpr(RelType type, const Symbol &s, 36 RelType getDynRel(RelType type) const override; 37 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 158 RelExpr AMDGPU::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 181 RelType AMDGPU::getDynRel(RelType type) const { in getDynRel() 187 int64_t AMDGPU::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
|
H A D | SystemZ.cpp | 27 int getTlsGdRelaxSkip(RelType type) const override; 28 RelExpr getRelExpr(RelType type, const Symbol &s, 30 RelType getDynRel(RelType type) const override; 38 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 39 RelExpr adjustGotPcExpr(RelType type, int64_t addend, 44 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 83 RelExpr SystemZ::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 270 RelType SystemZ::getDynRel(RelType type) const { in getDynRel() 276 RelExpr SystemZ::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 282 int SystemZ::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip() [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 | Hexagon.cpp | 29 RelExpr getRelExpr(RelType type, const Symbol &s, 31 RelType getDynRel(RelType type) const override; 32 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 91 RelExpr Hexagon::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 384 RelType Hexagon::getDynRel(RelType type) const { in getDynRel() 390 int64_t Hexagon::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
|
H A D | X86.cpp | 26 int getTlsGdRelaxSkip(RelType type) const override; 27 RelExpr getRelExpr(RelType type, const Symbol &s, 29 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 31 RelType getDynRel(RelType type) const override; 40 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 67 int X86::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip() 72 RelExpr X86::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 154 RelExpr X86::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 181 RelType X86::getDynRel(RelType type) const { in getDynRel() 236 int64_t X86::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
|
H A D | AArch64.cpp | 35 RelExpr getRelExpr(RelType type, const Symbol &s, 37 RelType getDynRel(RelType type) const override; 38 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 44 bool needsThunk(RelExpr expr, RelType type, const InputFile *file, 48 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override; 49 bool usesOnlyLowPageBits(RelType type) const override; 52 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 93 RelExpr AArch64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 179 RelExpr AArch64::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 188 bool AArch64::usesOnlyLowPageBits(RelType type) const { in usesOnlyLowPageBits() [all …]
|
H A D | PPC64.cpp | 172 int getTlsGdRelaxSkip(RelType type) const override; 174 RelExpr getRelExpr(RelType type, const Symbol &s, 176 RelType getDynRel(RelType type) const override; 192 RelExpr adjustGotPcExpr(RelType type, int64_t addend, 619 int PPC64::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip() 992 RelExpr PPC64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 1106 RelType PPC64::getDynRel(RelType type) const { in getDynRel() 1174 static std::pair<RelType, uint64_t> toAddr16Rel(RelType type, uint64_t val) { in toAddr16Rel() 1246 static bool isTocOptType(RelType type) { in isTocOptType() 1260 RelType type = rel.type; in relocate() [all …]
|
H A D | LoongArch.cpp | 28 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 34 RelType getDynRel(RelType type) const override; 35 RelExpr getRelExpr(RelType type, const Symbol &s, 37 bool usesOnlyLowPageBits(RelType type) const override; 90 uint64_t elf::getLoongArchPageDelta(uint64_t dest, uint64_t pc, RelType type) { in getLoongArchPageDelta() 274 int64_t LoongArch::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 367 RelType LoongArch::getDynRel(RelType type) const { in getDynRel() 369 : static_cast<RelType>(R_LARCH_NONE); in getDynRel() 372 RelExpr LoongArch::getRelExpr(const RelType type, const Symbol &s, in getRelExpr() 505 bool LoongArch::usesOnlyLowPageBits(RelType type) const { in usesOnlyLowPageBits()
|
H A D | X86_64.cpp | 30 int getTlsGdRelaxSkip(RelType type) const override; 31 RelExpr getRelExpr(RelType type, const Symbol &s, 33 RelType getDynRel(RelType type) const override; 42 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 45 RelExpr adjustGotPcExpr(RelType type, int64_t addend, 94 int X86_64::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip() 349 RelExpr X86_64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 452 RelType X86_64::getDynRel(RelType type) const { in getDynRel() 708 int64_t X86_64::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 857 RelExpr X86_64::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
|
H A D | AVR.cpp | 48 RelExpr getRelExpr(RelType type, const Symbol &s, 50 bool needsThunk(RelExpr expr, RelType type, const InputFile *file, 58 RelExpr AVR::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 106 bool AVR::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
H A D | X86ELFObjectWriter.cpp | 340 X86_32RelType RelType = RT32_NONE; in getRelocType() local 349 RelType = RT32_32; in getRelocType() 352 RelType = RT32_16; in getRelocType() 355 RelType = RT32_8; in getRelocType() 358 return getRelocType32(Ctx, Fixup.getLoc(), Modifier, RelType, IsPCRel, Kind); in getRelocType()
|