/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | Target.h | 23 std::string toString(elf::RelType type); 33 virtual RelExpr getRelExpr(RelType type, const Symbol &s, 35 virtual RelType getDynRel(RelType type) const { return 0; } in writeGotPltHeader() 40 virtual int64_t getImplicitAddend(const uint8_t *buf, RelType type) const; in getTlsGdRelaxSkip() 41 virtual int getTlsGdRelaxSkip(RelType type) const { return 1; } 64 virtual bool usesOnlyLowPageBits(RelType type) const; 68 virtual bool needsThunk(RelExpr expr, RelType relocType, 85 // Return true if we can reach dst from src with RelType type. 86 virtual bool inBranchRange(RelType typ [all...] |
H A D | Target.cpp | 43 std::string lld::toString(RelType type) { in toString() 128 int64_t TargetInfo::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 134 bool TargetInfo::usesOnlyLowPageBits(RelType type) const { return false; } in usesOnlyLowPageBits() 136 bool TargetInfo::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk() 147 bool TargetInfo::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange() 151 RelExpr TargetInfo::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 155 RelExpr TargetInfo::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldELF.cpp | 1037 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 1088 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 1089 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() 1096 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType, in getMatchingLoRelocation() argument 1098 switch (RelType) { in getMatchingLoRelocation() 1180 unsigned RelType = RelI->getType(); in resolveAArch64Branch() local 1185 Section.getLoadAddressWithOffset(i->second), RelType, 0); in resolveAArch64Branch() 1219 RelType, 0); in resolveAArch64Branch() 1229 uint64_t RelType = RelI->getType(); in processRelocationRef() local 1245 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend 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) 130 uint32_t RelType; variable 154 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry() 159 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry() 165 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry() 172 SectionID(id), RelType(type), Size(Size), IsPCRel(IsPCRel), in RelocationEntry() 183 SectionID(id), RelType(type), Size(Size), IsPCRel(IsPCRel), 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() 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 …]
|
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() 154 Twine(RelType) + in processRelocationRef() 175 if (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef() 180 (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) ? 4 : 8); in processRelocationRef() 184 if (!Value.SymbolName && (RelType == MachO::ARM_RELOC_BR24 || in processRelocationRef() [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() 152 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() 178 // FIXME: If RelType == COFF::IMAGE_REL_AMD64_ADDR32NB we should be able in generateRelocationStub() 185 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 191 RelType = COFF::IMAGE_REL_AMD64_ADDR64; in processRelocationRef() 193 return std::make_tuple(Offset, RelType, Addend); in processRelocationRef() 215 uint64_t RelType = RelI->getType(); in processRelocationRef() 244 switch (RelType) { in processRelocationRef() 257 std::tie(Offset, RelType, Adden in processRelocationRef() 145 generateRelocationStub(unsigned SectionID,StringRef TargetName,uint64_t Offset,uint64_t RelType,uint64_t Addend,StubMap & Stubs) generateRelocationStub() argument 208 uint64_t RelType = RelI->getType(); processRelocationRef() local [all...] |
H A D | RuntimeDyldCOFFThumb.h | 101 uint64_t RelType = RelI->getType(); in processRelocationRef() 110 switch (RelType) { in processRelocationRef() 125 << " RelType: " << RelTypeName << " TargetName: " 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, TargetOffse in processRelocationRef() 79 uint64_t RelType = RelI->getType(); processRelocationRef() local [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() 101 << " RelType: " << RelTypeName << " TargetName: " 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() [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() 243 << " RelType: " << RelTypeName << " TargetName: " in processRelocationRef() 248 RelocationEntry RE(SectionID, Offset, RelType, Adden 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; 33 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 45 bool needsThunk(RelExpr expr, RelType relocType, const InputFile *file, 49 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override; 52 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 53 int getTlsGdRelaxSkip(RelType type) const override; 198 bool PPC::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk() 211 bool PPC::inBranchRange(RelType typ [all...] |
H A D | AMDGPU.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; 179 RelExpr AMDGPU::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 202 RelType AMDGPU::getDynRel(RelType type) const { in getDynRel() 208 int64_t AMDGPU::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
|
H A D | Mips.cpp | 28 RelExpr getRelExpr(RelType type, const Symbol &s, 30 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 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() 358 bool MIPS<ELFT>::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk() 382 int64_t MIPS<ELFT>::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 482 calculateMipsRelChain(uint8_t *loc, RelType type, uint64_t val) { in calculateMipsRelChain() [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; 89 RelExpr Hexagon::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 396 RelType Hexagon::getDynRel(RelType type) const { in getDynRel() 402 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 | PPC64.cpp | 172 int getTlsGdRelaxSkip(RelType type) const override; 174 RelExpr getRelExpr(RelType type, const Symbol &s, 176 RelType getDynRel(RelType type) const override; 177 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 186 bool needsThunk(RelExpr expr, RelType type, const InputFile *file, 190 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override; 191 RelExpr adjustTlsExpr(RelType type, RelExpr expr) 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() [all …]
|
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; 100 RelExpr AArch64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 189 RelExpr AArch64::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 198 bool AArch64::usesOnlyLowPageBits(RelType type) const { in usesOnlyLowPageBits() [all …]
|
H A D | LoongArch.cpp | 29 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 35 RelType getDynRel(RelType type) const override; 36 RelExpr getRelExpr(RelType type, const Symbol &s, 38 bool usesOnlyLowPageBits(RelType type) const override; 91 uint64_t elf::getLoongArchPageDelta(uint64_t dest, uint64_t pc, RelType type) { in getLoongArchPageDelta() 279 int64_t LoongArch::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 376 RelType LoongArch::getDynRel(RelType type) const { in getDynRel() 378 : static_cast<RelType>(R_LARCH_NONE); in getDynRel() 381 RelExpr LoongArch::getRelExpr(const RelType type, const Symbol &s, in getRelExpr() 536 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() 352 RelExpr X86_64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 455 RelType X86_64::getDynRel(RelType type) const { in getDynRel() 711 int64_t X86_64::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 860 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()
|
H A D | MSP430.cpp | 35 RelExpr getRelExpr(RelType type, const Symbol &s, 47 RelExpr MSP430::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
|
/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()
|