Home
last modified time | relevance | path

Searched refs:RE (Results 1 – 25 of 633) sorted by relevance

12345678910>>...26

/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldCOFFThumb.h86 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
87 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
102 RelocationEntry RE = in processRelocationRef() local
105 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
109 RelocationEntry RE = in processRelocationRef() local
111 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
115 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() local
117 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
121 RelocationEntry RE = in processRelocationRef() local
124 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
[all …]
DRuntimeDyldCOFFI386.h89 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
90 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
105 RelocationEntry RE = in processRelocationRef() local
108 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
112 RelocationEntry RE = in processRelocationRef() local
114 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
118 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() local
120 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
132 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
133 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
[all …]
DRuntimeDyldMachOAArch64.h35 int64_t decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument
36 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
37 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend()
38 unsigned NumBytes = 1 << RE.Size; in decodeAddend()
41 switch (RE.RelType) { in decodeAddend()
58 switch (RE.RelType) { in decodeAddend()
278 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
279 RE.Addend = decodeAddend(RE); in processRelocationRef()
281 assert((ExplicitAddend == 0 || RE.Addend == 0) && "Relocation has "\ in processRelocationRef()
284 RE.Addend = ExplicitAddend; in processRelocationRef()
[all …]
DRuntimeDyldMachOARM.h37 int64_t decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument
38 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
39 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend()
41 switch (RE.RelType) { in decodeAddend()
43 return memcpyAddend(RE); in decodeAddend()
91 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
92 RE.Addend = decodeAddend(RE); in processRelocationRef()
94 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
99 if (RE.IsPCRel) in processRelocationRef()
102 if ((RE.RelType & 0xf) == MachO::ARM_RELOC_BR24) in processRelocationRef()
[all …]
DRuntimeDyldMachOX86_64.h51 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
52 RE.Addend = memcpyAddend(RE); in processRelocationRef()
54 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
60 if (!IsExtern && RE.IsPCRel) in processRelocationRef()
61 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
73 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef()
74 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef()
75 processGOTRelocation(RE, Value, Stubs); in processRelocationRef()
77 RE.Addend = Value.Offset; in processRelocationRef()
79 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
[all …]
DRuntimeDyldMachOI386.h68 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
69 RE.Addend = memcpyAddend(RE); in processRelocationRef()
71 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
86 if (RE.IsPCRel) in processRelocationRef()
87 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
89 RE.Addend = Value.Offset; in processRelocationRef()
92 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
94 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
99 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
100 DEBUG(dumpRelocationToResolve(RE, Value)); in resolveRelocation()
[all …]
/external/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldCOFFThumb.h126 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
127 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
140 RelocationEntry RE = in processRelocationRef() local
143 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
147 RelocationEntry RE = in processRelocationRef() local
150 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
154 RelocationEntry RE = in processRelocationRef() local
156 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
160 RelocationEntry RE = in processRelocationRef() local
162 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
[all …]
DRuntimeDyldMachOAArch64.h34 Expected<int64_t> decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument
35 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
36 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend()
37 unsigned NumBytes = 1 << RE.Size; in decodeAddend()
40 switch (RE.RelType) { in decodeAddend()
46 << getRelocName(RE.RelType); in decodeAddend()
58 << getRelocName(RE.RelType); in decodeAddend()
76 switch (RE.RelType) { in decodeAddend()
305 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef()
[all …]
DRuntimeDyldCOFFI386.h105 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
106 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
116 RelocationEntry RE = in processRelocationRef() local
119 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
123 RelocationEntry RE = in processRelocationRef() local
125 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
129 RelocationEntry RE = in processRelocationRef() local
131 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
142 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
143 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
[all …]
DRuntimeDyldMachOARM.h63 Expected<int64_t> decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument
64 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
65 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend()
67 switch (RE.RelType) { in decodeAddend()
69 return memcpyAddend(RE); in decodeAddend()
160 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
161 if (auto AddendOrErr = decodeAddend(RE)) in processRelocationRef()
162 RE.Addend = *AddendOrErr; in processRelocationRef()
165 RE.IsTargetThumbFunc = TargetIsLocalThumbFunc; in processRelocationRef()
168 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
[all …]
DRuntimeDyldMachOX86_64.h50 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
51 RE.Addend = memcpyAddend(RE); in processRelocationRef()
53 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
59 if (!IsExtern && RE.IsPCRel) in processRelocationRef()
60 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
72 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef()
73 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef()
74 processGOTRelocation(RE, Value, Stubs); in processRelocationRef()
76 RE.Addend = Value.Offset; in processRelocationRef()
78 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
[all …]
DRuntimeDyldMachOI386.h67 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
68 RE.Addend = memcpyAddend(RE); in processRelocationRef()
70 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
85 if (RE.IsPCRel) in processRelocationRef()
86 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
88 RE.Addend = Value.Offset; in processRelocationRef()
91 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
93 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
98 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
99 LLVM_DEBUG(dumpRelocationToResolve(RE, Value)); in resolveRelocation()
[all …]
DRuntimeDyldCOFFAArch64.h128 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
129 resolveRelocation(RE, Section.getLoadAddressWithOffset(StubOffset)); in generateRelocationStub()
247 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
248 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
250 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
251 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
256 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
257 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
258 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
259 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation()
[all …]
DRuntimeDyldELFMips.cpp14 void RuntimeDyldELFMips::resolveRelocation(const RelocationEntry &RE, in resolveRelocation() argument
16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
21 RE.SymOffset, RE.SectionID); in resolveRelocation()
23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
24 RE.SymOffset, RE.SectionID); in resolveRelocation()
29 uint64_t RuntimeDyldELFMips::evaluateRelocation(const RelocationEntry &RE, in evaluateRelocation() argument
33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation()
34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation()
[all …]
DRuntimeDyldCOFFX86_64.h87 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
88 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
89 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
91 switch (RE.RelType) { in resolveRelocation()
99 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation()
102 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation()
104 uint64_t Result = Value + RE.Addend; in resolveRelocation()
120 write32BitOffset(Target, RE.Addend, Value - ImageBase); in resolveRelocation()
126 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation()
131 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && "Relocation overflow"); in resolveRelocation()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldCOFFThumb.h108 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
109 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
127 RelocationEntry RE = RelocationEntry( in processRelocationRef() local
130 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
134 RelocationEntry RE = in processRelocationRef() local
137 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
141 RelocationEntry RE = in processRelocationRef() local
143 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
147 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() local
149 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
[all …]
DRuntimeDyldMachOAArch64.h34 Expected<int64_t> decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument
35 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
36 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend()
37 unsigned NumBytes = 1 << RE.Size; in decodeAddend()
40 switch (RE.RelType) { in decodeAddend()
46 << getRelocName(RE.RelType); in decodeAddend()
58 << getRelocName(RE.RelType); in decodeAddend()
76 switch (RE.RelType) { in decodeAddend()
305 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef()
[all …]
DRuntimeDyldCOFFI386.h88 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
89 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
104 RelocationEntry RE = in processRelocationRef() local
107 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
111 RelocationEntry RE = in processRelocationRef() local
113 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
117 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() local
119 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
131 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
132 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
[all …]
DRuntimeDyldMachOARM.h63 Expected<int64_t> decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument
64 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
65 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend()
67 switch (RE.RelType) { in decodeAddend()
69 return memcpyAddend(RE); in decodeAddend()
160 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
161 if (auto AddendOrErr = decodeAddend(RE)) in processRelocationRef()
162 RE.Addend = *AddendOrErr; in processRelocationRef()
165 RE.IsTargetThumbFunc = TargetIsLocalThumbFunc; in processRelocationRef()
168 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
[all …]
DRuntimeDyldMachOX86_64.h50 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
51 RE.Addend = memcpyAddend(RE); in processRelocationRef()
53 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
59 if (!IsExtern && RE.IsPCRel) in processRelocationRef()
60 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
72 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef()
73 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef()
74 processGOTRelocation(RE, Value, Stubs); in processRelocationRef()
76 RE.Addend = Value.Offset; in processRelocationRef()
78 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
[all …]
DRuntimeDyldMachOI386.h67 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
68 RE.Addend = memcpyAddend(RE); in processRelocationRef()
70 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
85 if (RE.IsPCRel) in processRelocationRef()
86 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
88 RE.Addend = Value.Offset; in processRelocationRef()
91 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
93 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
98 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
99 LLVM_DEBUG(dumpRelocationToResolve(RE, Value)); in resolveRelocation()
[all …]
DRuntimeDyldCOFFAArch64.h127 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
128 resolveRelocation(RE, Section.getLoadAddressWithOffset(StubOffset)); in generateRelocationStub()
229 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
230 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
239 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
240 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
245 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
246 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
247 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
248 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation()
[all …]
DRuntimeDyldELFMips.cpp14 void RuntimeDyldELFMips::resolveRelocation(const RelocationEntry &RE, in resolveRelocation() argument
16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
21 RE.SymOffset, RE.SectionID); in resolveRelocation()
23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
24 RE.SymOffset, RE.SectionID); in resolveRelocation()
29 uint64_t RuntimeDyldELFMips::evaluateRelocation(const RelocationEntry &RE, in evaluateRelocation() argument
33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation()
34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation()
[all …]
DRuntimeDyldCOFFX86_64.h86 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
87 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
88 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
90 switch (RE.RelType) { in resolveRelocation()
98 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation()
101 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation()
103 uint64_t Result = Value + RE.Addend; in resolveRelocation()
120 write32BitOffset(Target, RE.Addend, Value - ImageBase); in resolveRelocation()
126 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation()
131 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && "Relocation overflow"); in resolveRelocation()
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldMachO.cpp46 int64_t RuntimeDyldMachO::memcpyAddend(const RelocationEntry &RE) const { in memcpyAddend()
47 unsigned NumBytes = 1 << RE.Size; in memcpyAddend()
48 uint8_t *Src = Sections[RE.SectionID].getAddress() + RE.Offset; in memcpyAddend()
60 MachO::any_relocation_info RE = in processScatteredVANILLA() local
64 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processScatteredVANILLA()
65 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA()
66 unsigned Size = Obj.getAnyRelocationLength(RE); in processScatteredVANILLA()
72 unsigned SymbolBaseAddr = Obj.getScatteredRelocationValue(RE); in processScatteredVANILLA()
97 const RelocationEntry &RE, ObjSectionToIDMap &ObjSectionToID) { in getRelocationValueRef() argument
118 Value.Offset = SymInfo.getOffset() + RE.Addend; in getRelocationValueRef()
[all …]

12345678910>>...26