| /openbsd-src/gnu/llvm/lld/ELF/ |
| H A D | Target.h | 21 std::string toString(elf::RelType type); 31 virtual RelExpr getRelExpr(RelType type, const Symbol &s, 33 virtual RelType getDynRel(RelType type) const { return 0; } in getDynRel() 38 virtual int64_t getImplicitAddend(const uint8_t *buf, RelType type) const; 39 virtual int getTlsGdRelaxSkip(RelType type) const { return 1; } in getTlsGdRelaxSkip() 62 virtual bool usesOnlyLowPageBits(RelType type) const; 66 virtual bool needsThunk(RelExpr expr, RelType relocType, 84 virtual bool inBranchRange(RelType type, uint64_t src, 89 void relocateNoSym(uint8_t *loc, RelType type, uint64_t val) const { in relocateNoSym() 120 static constexpr RelType noneRel = 0; [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 | SyntheticSections.h | 425 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc() 431 DynamicReloc(RelType type, const InputSectionBase *inputSec, 437 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc() 462 RelType type; 501 void addSymbolReloc(RelType dynType, InputSectionBase &isec, 503 std::optional<RelType> addendRelType = {}); 510 void addRelativeReloc(RelType dynType, InputSectionBase &isec, in addRelativeReloc() 512 RelType addendRelType, RelExpr expr) { in addRelativeReloc() 519 void addAddendOnlyRelocIfNonPreemptible(RelType dynType, GotSection &sec, 521 RelType addendRelType); [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldELF.cpp | 1033 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 1084 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 1085 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() 1092 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType, in getMatchingLoRelocation() argument 1094 switch (RelType) { in getMatchingLoRelocation() 1166 unsigned RelType = RelI->getType(); in resolveAArch64Branch() local 1172 RelType, 0); in resolveAArch64Branch() 1207 RelType, 0); in resolveAArch64Branch() 1217 uint64_t RelType = RelI->getType(); in processRelocationRef() local 1233 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) 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()
|
| /openbsd-src/gnu/llvm/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 | 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 …]
|
| 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 | 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() 166 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, 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()
|
| /openbsd-src/gnu/llvm/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 type, uint64_t src, uint64_t dst) const { in inBranchRange() 218 RelExpr PPC::getRelExpr(RelType type, const Symbol &s, in getRelExpr() [all …]
|
| 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 | 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 | 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 | 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; 43 bool needsThunk(RelExpr expr, RelType type, const InputFile *file, 47 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override; 48 bool usesOnlyLowPageBits(RelType type) const override; 51 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 92 RelExpr AArch64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 174 RelExpr AArch64::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr() 183 bool AArch64::usesOnlyLowPageBits(RelType type) const { in usesOnlyLowPageBits() [all …]
|
| H A D | PPC64.cpp | 156 int getTlsGdRelaxSkip(RelType type) const override; 158 RelExpr getRelExpr(RelType type, const Symbol &s, 160 RelType getDynRel(RelType type) const override; 161 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 170 bool needsThunk(RelExpr expr, RelType type, const InputFile *file, 174 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override; 175 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override; 176 RelExpr adjustGotPcExpr(RelType type, int64_t addend, 607 int PPC64::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip() 949 RelExpr PPC64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() [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() 370 bool ARM::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange() 401 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() 383 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; 43 RelExpr adjustGotPcExpr(RelType type, int64_t addend, 91 int X86_64::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip() 308 RelExpr X86_64::getRelExpr(RelType type, const Symbol &s, in getRelExpr() 410 RelType X86_64::getDynRel(RelType type) const { in getDynRel() 666 int64_t X86_64::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 814 RelExpr X86_64::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
|
| H A D | MSP430.cpp | 35 RelExpr getRelExpr(RelType type, const Symbol &s, 47 RelExpr MSP430::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
|
| H A D | RISCV.cpp | 34 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override; 41 RelType getDynRel(RelType type) const override; 42 RelExpr getRelExpr(RelType type, const Symbol &s, 160 int64_t RISCV::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend() 243 RelType RISCV::getDynRel(RelType type) const { in getDynRel() 245 : static_cast<RelType>(R_RISCV_NONE); in getDynRel() 248 RelExpr RISCV::getRelExpr(const RelType type, const Symbol &s, in getRelExpr() 510 std::unique_ptr<RelType[]> relocTypes; 525 std::make_unique<RelType[]>(sec->relocs().size()); in initSymbolAnchors() 777 } else if (RelType newType = aux.relocTypes[i]) { in riscvFinalizeRelax()
|