Lines Matching refs:TargetPtr
313 uint32_t *TargetPtr = reinterpret_cast<uint32_t *>(Section.Address + Offset); in resolveAArch64Relocation() local
328 uint64_t *TargetPtr = in resolveAArch64Relocation() local
330 *TargetPtr = Value + Addend; in resolveAArch64Relocation()
337 *TargetPtr = static_cast<uint32_t>(Result & 0xffffffffU); in resolveAArch64Relocation()
352 *TargetPtr &= 0xfc000000U; in resolveAArch64Relocation()
354 *TargetPtr |= static_cast<uint32_t>(BranchImm & 0xffffffcU) >> 2; in resolveAArch64Relocation()
362 *TargetPtr &= 0xffe0001fU; in resolveAArch64Relocation()
364 *TargetPtr |= Result >> (48 - 5); in resolveAArch64Relocation()
366 assert((*TargetPtr >> 21 & 0x3) == 3 && "invalid shift for relocation"); in resolveAArch64Relocation()
374 *TargetPtr &= 0xffe0001fU; in resolveAArch64Relocation()
376 *TargetPtr |= ((Result & 0xffff00000000ULL) >> (32 - 5)); in resolveAArch64Relocation()
378 assert((*TargetPtr >> 21 & 0x3) == 2 && "invalid shift for relocation"); in resolveAArch64Relocation()
386 *TargetPtr &= 0xffe0001fU; in resolveAArch64Relocation()
388 *TargetPtr |= ((Result & 0xffff0000U) >> (16 - 5)); in resolveAArch64Relocation()
390 assert((*TargetPtr >> 21 & 0x3) == 1 && "invalid shift for relocation"); in resolveAArch64Relocation()
398 *TargetPtr &= 0xffe0001fU; in resolveAArch64Relocation()
400 *TargetPtr |= ((Result & 0xffffU) << 5); in resolveAArch64Relocation()
402 assert((*TargetPtr >> 21 & 0x3) == 0 && "invalid shift for relocation"); in resolveAArch64Relocation()
417 *TargetPtr &= 0x9f00001fU; in resolveAArch64Relocation()
420 *TargetPtr |= ((Result & 0x3000U) << (29 - 12)); in resolveAArch64Relocation()
421 *TargetPtr |= ((Result & 0x1ffffc000ULL) >> (14 - 5)); in resolveAArch64Relocation()
430 *TargetPtr &= 0xffc003ffU; in resolveAArch64Relocation()
433 *TargetPtr |= ((Result & 0xffc) << (10 - 2)); in resolveAArch64Relocation()
442 *TargetPtr &= 0xffc003ffU; in resolveAArch64Relocation()
445 *TargetPtr |= ((Result & 0xff8) << (10 - 3)); in resolveAArch64Relocation()
457 uint32_t *TargetPtr = (uint32_t *)(Section.Address + Offset); in resolveARMRelocation() local
478 *TargetPtr = *Placeholder + Value; in resolveARMRelocation()
488 *TargetPtr = *Placeholder | (Value & 0xFFF); in resolveARMRelocation()
489 *TargetPtr |= ((Value >> 12) & 0xF) << 16; in resolveARMRelocation()
499 *TargetPtr = *Placeholder | (Value & 0xFFF); in resolveARMRelocation()
500 *TargetPtr |= ((Value >> 12) & 0xF) << 16; in resolveARMRelocation()
508 assert((*TargetPtr & 0xFFFFFF) == 0xFFFFFE); in resolveARMRelocation()
509 *TargetPtr &= 0xFF000000; in resolveARMRelocation()
510 *TargetPtr |= RelValue; in resolveARMRelocation()
518 *TargetPtr = Value; in resolveARMRelocation()
528 uint32_t *TargetPtr = (uint32_t *)(Section.Address + Offset); in resolveMIPSRelocation() local
542 *TargetPtr = Value + (*Placeholder); in resolveMIPSRelocation()
545 *TargetPtr = ((*Placeholder) & 0xfc000000) | ((Value & 0x0fffffff) >> 2); in resolveMIPSRelocation()
550 *TargetPtr = in resolveMIPSRelocation()
555 *TargetPtr = ((*Placeholder) & 0xffff0000) | (Value & 0xffff); in resolveMIPSRelocation()
562 *TargetPtr = in resolveMIPSRelocation()
563 ((*TargetPtr) & 0xffff0000) | (((Value + 0x8000) >> 16) & 0xffff); in resolveMIPSRelocation()
566 *TargetPtr = ((*TargetPtr) & 0xffff0000) | (Value & 0xffff); in resolveMIPSRelocation()