Lines Matching refs:TargetPtr

292   uint32_t *TargetPtr = reinterpret_cast<uint32_t *>(Section.Address + Offset);  in resolveAArch64Relocation()  local
307 uint64_t *TargetPtr = in resolveAArch64Relocation() local
309 *TargetPtr = Value + Addend; in resolveAArch64Relocation()
316 *TargetPtr = static_cast<uint32_t>(Result & 0xffffffffU); in resolveAArch64Relocation()
330 *TargetPtr &= 0xfc000000U; in resolveAArch64Relocation()
332 *TargetPtr |= static_cast<uint32_t>(BranchImm & 0xffffffcU) >> 2; in resolveAArch64Relocation()
340 *TargetPtr &= 0xffe0001fU; in resolveAArch64Relocation()
342 *TargetPtr |= Result >> (48 - 5); in resolveAArch64Relocation()
344 assert((*TargetPtr >> 21 & 0x3) == 3 && "invalid shift for relocation"); in resolveAArch64Relocation()
352 *TargetPtr &= 0xffe0001fU; in resolveAArch64Relocation()
354 *TargetPtr |= ((Result & 0xffff00000000ULL) >> (32 - 5)); in resolveAArch64Relocation()
356 assert((*TargetPtr >> 21 & 0x3) == 2 && "invalid shift for relocation"); in resolveAArch64Relocation()
364 *TargetPtr &= 0xffe0001fU; in resolveAArch64Relocation()
366 *TargetPtr |= ((Result & 0xffff0000U) >> (16 - 5)); in resolveAArch64Relocation()
368 assert((*TargetPtr >> 21 & 0x3) == 1 && "invalid shift for relocation"); in resolveAArch64Relocation()
376 *TargetPtr &= 0xffe0001fU; in resolveAArch64Relocation()
378 *TargetPtr |= ((Result & 0xffffU) << 5); in resolveAArch64Relocation()
380 assert((*TargetPtr >> 21 & 0x3) == 0 && "invalid shift for relocation"); in resolveAArch64Relocation()
393 *TargetPtr &= 0x9f00001fU; in resolveAArch64Relocation()
396 *TargetPtr |= ((Result & 0x3000U) << (29 - 12)); in resolveAArch64Relocation()
397 *TargetPtr |= ((Result & 0x1ffffc000ULL) >> (14 - 5)); in resolveAArch64Relocation()
406 *TargetPtr &= 0xffc003ffU; in resolveAArch64Relocation()
409 *TargetPtr |= ((Result & 0xffc) << (10 - 2)); in resolveAArch64Relocation()
418 *TargetPtr &= 0xffc003ffU; in resolveAArch64Relocation()
421 *TargetPtr |= ((Result & 0xff8) << (10 - 3)); in resolveAArch64Relocation()
431 uint32_t *TargetPtr = (uint32_t *)(Section.Address + Offset); in resolveARMRelocation() local
450 *TargetPtr = Value; in resolveARMRelocation()
460 *TargetPtr &= ~0x000F0FFF; in resolveARMRelocation()
461 *TargetPtr |= Value & 0xFFF; in resolveARMRelocation()
462 *TargetPtr |= ((Value >> 12) & 0xF) << 16; in resolveARMRelocation()
470 assert((*TargetPtr & 0xFFFFFF) == 0xFFFFFE); in resolveARMRelocation()
471 *TargetPtr &= 0xFF000000; in resolveARMRelocation()
472 *TargetPtr |= RelValue; in resolveARMRelocation()
480 uint8_t *TargetPtr = Section.Address + Offset; in resolveMIPSRelocation() local
489 uint32_t Insn = readBytesUnaligned(TargetPtr, 4); in resolveMIPSRelocation()
496 writeBytesUnaligned(Value, TargetPtr, 4); in resolveMIPSRelocation()
501 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
507 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
512 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
516 writeBytesUnaligned(Value - FinalAddress, (uint8_t *)TargetPtr, 4); in resolveMIPSRelocation()
523 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
530 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
537 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
544 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
551 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
558 writeBytesUnaligned(Insn, TargetPtr, 4); in resolveMIPSRelocation()
710 void RuntimeDyldELF::applyMIPS64Relocation(uint8_t *TargetPtr, in applyMIPS64Relocation() argument
713 uint32_t Insn = readBytesUnaligned(TargetPtr, 4); in applyMIPS64Relocation()
721 writeBytesUnaligned(CalculatedValue & 0xffffffff, TargetPtr, 4); in applyMIPS64Relocation()
725 writeBytesUnaligned(CalculatedValue, TargetPtr, 8); in applyMIPS64Relocation()
730 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
734 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
746 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
750 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
754 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()
758 writeBytesUnaligned(Insn, TargetPtr, 4); in applyMIPS64Relocation()