Lines Matching full:value

15                                            uint64_t Value) {  in resolveRelocation()  argument
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()
30 uint64_t Value, in evaluateRelocation() argument
34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation()
36 return Value; in evaluateRelocation()
42 uint64_t Value) { in applyRelocation() argument
45 applyMIPSRelocation(Section.getAddressWithOffset(RE.Offset), Value, in applyRelocation()
54 uint64_t Offset, uint64_t Value, in evaluateMIPS32Relocation() argument
61 << " Value: 0x" << format("%llx", Value) << " Type: 0x" in evaluateMIPS32Relocation()
67 return Value; in evaluateMIPS32Relocation()
69 return Value; in evaluateMIPS32Relocation()
71 return Value >> 2; in evaluateMIPS32Relocation()
74 return (Value + 0x8000) >> 16; in evaluateMIPS32Relocation()
76 return Value; in evaluateMIPS32Relocation()
79 return Value - FinalAddress; in evaluateMIPS32Relocation()
83 return (Value - FinalAddress) >> 2; in evaluateMIPS32Relocation()
87 return (Value - (FinalAddress & ~0x3)) >> 2; in evaluateMIPS32Relocation()
91 return (Value - FinalAddress) >> 2; in evaluateMIPS32Relocation()
95 return (Value - FinalAddress) >> 2; in evaluateMIPS32Relocation()
99 return (Value - FinalAddress + 0x8000) >> 16; in evaluateMIPS32Relocation()
103 return Value - FinalAddress; in evaluateMIPS32Relocation()
109 const SectionEntry &Section, uint64_t Offset, uint64_t Value, uint32_t Type, in evaluateMIPS64Relocation() argument
116 << " Value: 0x" << format("%llx", Value) << " Type: 0x" in evaluateMIPS64Relocation()
132 return Value + Addend; in evaluateMIPS64Relocation()
134 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
137 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
140 return Value - Addend; in evaluateMIPS64Relocation()
143 return ((Value + Addend + 0x8000) >> 16) & 0xffff; in evaluateMIPS64Relocation()
145 return (Value + Addend) & 0xffff; in evaluateMIPS64Relocation()
147 return ((Value + Addend + 0x80008000) >> 32) & 0xffff; in evaluateMIPS64Relocation()
149 return ((Value + Addend + 0x800080008000) >> 48) & 0xffff; in evaluateMIPS64Relocation()
157 Value += Addend; in evaluateMIPS64Relocation()
159 Value = (Value + 0x8000) & ~0xffff; in evaluateMIPS64Relocation()
162 assert(GOTEntry == Value && in evaluateMIPS64Relocation()
165 writeBytesUnaligned(Value, LocalGOTAddr, getGOTEntrySize()); in evaluateMIPS64Relocation()
170 int64_t page = (Value + Addend + 0x8000) & ~0xffff; in evaluateMIPS64Relocation()
171 return (Value + Addend - page) & 0xffff; in evaluateMIPS64Relocation()
175 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
179 return ((Value + Addend - FinalAddress) >> 2) & 0xffff; in evaluateMIPS64Relocation()
183 return Value + Addend - FinalAddress; in evaluateMIPS64Relocation()
187 return ((Value + Addend - (FinalAddress & ~0x7)) >> 3) & 0x3ffff; in evaluateMIPS64Relocation()
191 return ((Value + Addend - (FinalAddress & ~0x3)) >> 2) & 0x7ffff; in evaluateMIPS64Relocation()
195 return ((Value + Addend - FinalAddress) >> 2) & 0x1fffff; in evaluateMIPS64Relocation()
199 return ((Value + Addend - FinalAddress) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
203 return ((Value + Addend - FinalAddress + 0x8000) >> 16) & 0xffff; in evaluateMIPS64Relocation()
207 return (Value + Addend - FinalAddress) & 0xffff; in evaluateMIPS64Relocation()
213 void RuntimeDyldELFMips::applyMIPSRelocation(uint8_t *TargetPtr, int64_t Value, in applyMIPSRelocation() argument
233 Insn = (Insn & 0xffff0000) | (Value & 0x0000ffff); in applyMIPSRelocation()
237 Insn = (Insn & 0xfffc0000) | (Value & 0x0003ffff); in applyMIPSRelocation()
241 Insn = (Insn & 0xfff80000) | (Value & 0x0007ffff); in applyMIPSRelocation()
245 Insn = (Insn & 0xffe00000) | (Value & 0x001fffff); in applyMIPSRelocation()
250 Insn = (Insn & 0xfc000000) | (Value & 0x03ffffff); in applyMIPSRelocation()
256 writeBytesUnaligned(Value & 0xffffffff, TargetPtr, 4); in applyMIPSRelocation()
260 writeBytesUnaligned(Value, TargetPtr, 8); in applyMIPSRelocation()
266 const SectionEntry &Section, uint64_t Offset, uint64_t Value, uint32_t Type, in resolveMIPSN32Relocation() argument
269 Section, Offset, Value, Type, Addend, SymOffset, SectionID); in resolveMIPSN32Relocation()
275 const SectionEntry &Section, uint64_t Offset, uint64_t Value, uint32_t Type, in resolveMIPSN64Relocation() argument
284 int64_t CalculatedValue = evaluateMIPS64Relocation(Section, Offset, Value, in resolveMIPSN64Relocation()
305 uint32_t Value, uint32_t Type, in resolveMIPSO32Relocation() argument
308 Value += Addend; in resolveMIPSO32Relocation()
313 << " Value: " << format("%x", Value) << " Type: " in resolveMIPSO32Relocation()
317 Value = evaluateMIPS32Relocation(Section, Offset, Value, Type); in resolveMIPSO32Relocation()
319 applyMIPSRelocation(TargetPtr, Value, Type); in resolveMIPSO32Relocation()