Lines Matching full:addend
101 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
109 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
128 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
134 Addend = 0; in generateRelocationStub()
138 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
167 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
168 uint64_t Addend = 0; in processRelocationRef() local
196 Addend = read32le(Displacement); in processRelocationRef()
200 Addend = (orig & 0x03FFFFFF) << 2; in processRelocationRef()
203 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef()
204 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef()
209 Addend = (orig & 0x00FFFFE0) >> 3; in processRelocationRef()
214 Addend = (orig & 0x000FFFE0) >> 3; in processRelocationRef()
220 Addend = ((orig >> 29) & 0x3) | ((orig >> 3) & 0x1FFFFC); in processRelocationRef()
226 Addend = ((orig >> 10) & 0xFFF); in processRelocationRef()
230 Addend = read64le(Displacement); in processRelocationRef()
243 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
247 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
250 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
270 Value += RE.Addend; in resolveRelocation()
276 Value += RE.Addend; in resolveRelocation()
283 Value += RE.Addend; in resolveRelocation()
290 Value += RE.Addend; in resolveRelocation()
296 uint32_t VA = Value + RE.Addend; in resolveRelocation()
302 uint64_t RVA = Value + RE.Addend - getImageBase(); in resolveRelocation()
308 or32le(Target + 12, ((Value + RE.Addend) & 0xFFFF) << 5); in resolveRelocation()
309 or32le(Target + 8, ((Value + RE.Addend) & 0xFFFF0000) >> 11); in resolveRelocation()
310 or32le(Target + 4, ((Value + RE.Addend) & 0xFFFF00000000) >> 27); in resolveRelocation()
311 or32le(Target + 0, ((Value + RE.Addend) & 0xFFFF000000000000) >> 43); in resolveRelocation()
317 uint64_t PCRelVal = Value + RE.Addend - FinalAddress; in resolveRelocation()
326 uint64_t PCRelVal = Value + RE.Addend - FinalAddress; in resolveRelocation()
335 uint64_t PCRelVal = Value + RE.Addend - FinalAddress; in resolveRelocation()
343 write64le(Target, Value + RE.Addend); in resolveRelocation()
355 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
357 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
359 write32le(Target, RE.Addend); in resolveRelocation()
365 write32le(Target, Result + RE.Addend); in resolveRelocation()