Lines Matching refs:Value

16                                            uint64_t Value) {  in resolveRelocation()  argument
19 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
21 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
24 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
31 uint64_t Value, in evaluateRelocation() argument
35 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation()
37 return Value; in evaluateRelocation()
43 uint64_t Value) { in applyRelocation() argument
46 applyMIPSRelocation(Section.getAddressWithOffset(RE.Offset), Value, in applyRelocation()
55 uint64_t Offset, uint64_t Value, in evaluateMIPS32Relocation() argument
62 << " Value: 0x" << format("%llx", Value) << " Type: 0x" in evaluateMIPS32Relocation()
68 return Value; in evaluateMIPS32Relocation()
70 return Value; in evaluateMIPS32Relocation()
72 return Value >> 2; in evaluateMIPS32Relocation()
75 return (Value + 0x8000) >> 16; in evaluateMIPS32Relocation()
77 return Value; in evaluateMIPS32Relocation()
80 return Value - FinalAddress; in evaluateMIPS32Relocation()
84 return (Value - FinalAddress) >> 2; in evaluateMIPS32Relocation()
88 return (Value - (FinalAddress & ~0x3)) >> 2; in evaluateMIPS32Relocation()
92 return (Value - FinalAddress) >> 2; in evaluateMIPS32Relocation()
96 return (Value - FinalAddress) >> 2; in evaluateMIPS32Relocation()
100 return (Value - FinalAddress + 0x8000) >> 16; in evaluateMIPS32Relocation()
104 return Value - FinalAddress; in evaluateMIPS32Relocation()
110 const SectionEntry &Section, uint64_t Offset, uint64_t Value, uint32_t Type, in evaluateMIPS64Relocation() argument
117 << " Value: 0x" << format("%llx", Value) << " Type: 0x" in evaluateMIPS64Relocation()
133 return Value + Addend; in evaluateMIPS64Relocation()
135 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
138 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
141 return Value - Addend; in evaluateMIPS64Relocation()
144 return ((Value + Addend + 0x8000) >> 16) & 0xffff; in evaluateMIPS64Relocation()
146 return (Value + Addend) & 0xffff; in evaluateMIPS64Relocation()
148 return ((Value + Addend + 0x80008000) >> 32) & 0xffff; in evaluateMIPS64Relocation()
150 return ((Value + Addend + 0x800080008000) >> 48) & 0xffff; in evaluateMIPS64Relocation()
158 Value += Addend; in evaluateMIPS64Relocation()
160 Value = (Value + 0x8000) & ~0xffff; in evaluateMIPS64Relocation()
163 assert(GOTEntry == Value && in evaluateMIPS64Relocation()
166 writeBytesUnaligned(Value, LocalGOTAddr, getGOTEntrySize()); in evaluateMIPS64Relocation()
171 int64_t page = (Value + Addend + 0x8000) & ~0xffff; in evaluateMIPS64Relocation()
172 return (Value + Addend - page) & 0xffff; in evaluateMIPS64Relocation()
176 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
180 return ((Value + Addend - FinalAddress) >> 2) & 0xffff; in evaluateMIPS64Relocation()
184 return Value + Addend - FinalAddress; in evaluateMIPS64Relocation()
188 return ((Value + Addend - (FinalAddress & ~0x7)) >> 3) & 0x3ffff; in evaluateMIPS64Relocation()
192 return ((Value + Addend - (FinalAddress & ~0x3)) >> 2) & 0x7ffff; in evaluateMIPS64Relocation()
196 return ((Value + Addend - FinalAddress) >> 2) & 0x1fffff; in evaluateMIPS64Relocation()
200 return ((Value + Addend - FinalAddress) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
204 return ((Value + Addend - FinalAddress + 0x8000) >> 16) & 0xffff; in evaluateMIPS64Relocation()
208 return (Value + Addend - FinalAddress) & 0xffff; in evaluateMIPS64Relocation()
214 void RuntimeDyldELFMips::applyMIPSRelocation(uint8_t *TargetPtr, int64_t Value, in applyMIPSRelocation() argument
234 Insn = (Insn & 0xffff0000) | (Value & 0x0000ffff); in applyMIPSRelocation()
238 Insn = (Insn & 0xfffc0000) | (Value & 0x0003ffff); in applyMIPSRelocation()
242 Insn = (Insn & 0xfff80000) | (Value & 0x0007ffff); in applyMIPSRelocation()
246 Insn = (Insn & 0xffe00000) | (Value & 0x001fffff); in applyMIPSRelocation()
251 Insn = (Insn & 0xfc000000) | (Value & 0x03ffffff); in applyMIPSRelocation()
257 writeBytesUnaligned(Value & 0xffffffff, TargetPtr, 4); in applyMIPSRelocation()
261 writeBytesUnaligned(Value, TargetPtr, 8); in applyMIPSRelocation()
267 const SectionEntry &Section, uint64_t Offset, uint64_t Value, uint32_t Type, in resolveMIPSN32Relocation() argument
270 Section, Offset, Value, Type, Addend, SymOffset, SectionID); in resolveMIPSN32Relocation()
276 const SectionEntry &Section, uint64_t Offset, uint64_t Value, uint32_t Type, in resolveMIPSN64Relocation() argument
285 int64_t CalculatedValue = evaluateMIPS64Relocation(Section, Offset, Value, in resolveMIPSN64Relocation()
306 uint32_t Value, uint32_t Type, in resolveMIPSO32Relocation() argument
309 Value += Addend; in resolveMIPSO32Relocation()
314 << " Value: " << format("%x", Value) << " Type: " in resolveMIPSO32Relocation()
318 Value = evaluateMIPS32Relocation(Section, Offset, Value, Type); in resolveMIPSO32Relocation()
320 applyMIPSRelocation(TargetPtr, Value, Type); in resolveMIPSO32Relocation()