Lines Matching refs:TargetPtr
409 uint32_t *TargetPtr = in resolveAArch64Relocation() local
432 write(isBE, TargetPtr, static_cast<uint16_t>(Result & 0xffffU)); in resolveAArch64Relocation()
439 write(isBE, TargetPtr, static_cast<uint32_t>(Result & 0xffffffffU)); in resolveAArch64Relocation()
443 write(isBE, TargetPtr, Value + Addend); in resolveAArch64Relocation()
449 write(isBE, TargetPtr, static_cast<uint32_t>(Result)); in resolveAArch64Relocation()
456 write(isBE, TargetPtr, static_cast<uint16_t>(Result & 0xffffU)); in resolveAArch64Relocation()
463 write(isBE, TargetPtr, static_cast<uint32_t>(Result & 0xffffffffU)); in resolveAArch64Relocation()
467 write(isBE, TargetPtr, Value + Addend - FinalAddress); in resolveAArch64Relocation()
473 *TargetPtr &= 0xff00001fU; in resolveAArch64Relocation()
475 or32le(TargetPtr, (BranchImm & 0x001FFFFC) << 3); in resolveAArch64Relocation()
483 uint32_t RawInstr = *(support::little32_t *)TargetPtr; in resolveAArch64Relocation()
484 *(support::little32_t *)TargetPtr = RawInstr & 0xfff8001fU; in resolveAArch64Relocation()
487 or32le(TargetPtr, (BranchImm & 0x0000FFFC) << 3); in resolveAArch64Relocation()
498 or32le(TargetPtr, (BranchImm & 0x0FFFFFFC) >> 2); in resolveAArch64Relocation()
502 or32le(TargetPtr, ((Value + Addend) & 0xFFFF000000000000) >> 43); in resolveAArch64Relocation()
505 or32le(TargetPtr, ((Value + Addend) & 0xFFFF00000000) >> 27); in resolveAArch64Relocation()
508 or32le(TargetPtr, ((Value + Addend) & 0xFFFF0000) >> 11); in resolveAArch64Relocation()
511 or32le(TargetPtr, ((Value + Addend) & 0xFFFF) << 5); in resolveAArch64Relocation()
523 write32AArch64Addr(TargetPtr, Result >> 12); in resolveAArch64Relocation()
530 or32AArch64Imm(TargetPtr, Value + Addend); in resolveAArch64Relocation()
536 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 0, 11)); in resolveAArch64Relocation()
542 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 1, 11)); in resolveAArch64Relocation()
548 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 2, 11)); in resolveAArch64Relocation()
554 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 3, 11)); in resolveAArch64Relocation()
560 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 4, 11)); in resolveAArch64Relocation()
569 *TargetPtr &= 0xff00001fU; in resolveAArch64Relocation()
572 *TargetPtr |= ((Result & 0xffc) << (5 - 2)); in resolveAArch64Relocation()
582 *TargetPtr &= 0x9f00001fU; in resolveAArch64Relocation()
585 *TargetPtr |= ((Result & 0xffc) << (5 - 2)); in resolveAArch64Relocation()
586 *TargetPtr |= (Result & 0x3) << 29; in resolveAArch64Relocation()
596 uint32_t *TargetPtr = in resolveARMRelocation() local
616 support::ulittle32_t::ref{TargetPtr} = in resolveARMRelocation()
617 (support::ulittle32_t::ref{TargetPtr} & 0x80000000) | in resolveARMRelocation()
622 support::ulittle32_t::ref{TargetPtr} = Value; in resolveARMRelocation()
632 support::ulittle32_t::ref{TargetPtr} = in resolveARMRelocation()
633 (support::ulittle32_t::ref{TargetPtr} & ~0x000F0FFF) | (Value & 0xFFF) | in resolveARMRelocation()
642 assert((support::ulittle32_t::ref{TargetPtr} & 0xFFFFFF) == 0xFFFFFE); in resolveARMRelocation()
643 support::ulittle32_t::ref{TargetPtr} = in resolveARMRelocation()
644 (support::ulittle32_t::ref{TargetPtr} & 0xFF000000) | RelValue; in resolveARMRelocation()