/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldELF.cpp | 995 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 1046 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 1047 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() 1054 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType, in getMatchingLoRelocation() argument 1056 switch (RelType) { in getMatchingLoRelocation() 1128 unsigned RelType = RelI->getType(); in resolveAArch64Branch() local 1134 RelType, 0); in resolveAArch64Branch() 1169 RelType, 0); in resolveAArch64Branch() 1179 uint64_t RelType = RelI->getType(); in processRelocationRef() local 1195 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()
|
H A D | RuntimeDyldMachO.h | 75 MachO::RelocationInfoType RelType = in getRelocationEntry() local 78 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
|
H A D | RuntimeDyldELF.h | 126 …void processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValu… 129 uint32_t getMatchingLoRelocation(uint32_t RelType,
|
H A D | RuntimeDyldMachO.cpp | 158 << " isPCRel: " << RE.IsPCRel << " MachoType: " << RE.RelType in dumpRelocationToResolve()
|
/netbsd-src/external/apache2/llvm/dist/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 | 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 …]
|
H A 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 …]
|
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 | 42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 45 if (RelType == MachO::GENERIC_RELOC_SECTDIFF || in processRelocationRef() 46 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) in processRelocationRef() 49 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 52 "type: " + Twine(RelType)).str()); in processRelocationRef() 55 switch (RelType) { in processRelocationRef() 60 if (RelType > MachO::GENERIC_RELOC_TLV) in processRelocationRef() 62 Twine(RelType) + in processRelocationRef() 109 switch (RE.RelType) { in resolveRelocation()
|
H A D | RuntimeDyldMachOX86_64.h | 42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 44 if (RelType == MachO::X86_64_RELOC_SUBTRACTOR) in processRelocationRef() 62 switch (RelType) { in processRelocationRef() 65 if (RelType > MachO::X86_64_RELOC_TLV) in processRelocationRef() 67 Twine(RelType) + in processRelocationRef() 72 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef() 73 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef() 100 switch (RE.RelType) { in resolveRelocation()
|