Lines Matching refs:Val

112   void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
120 void relaxTlsGdToIe(uint8_t *Loc, RelType Type, uint64_t Val) const override;
121 void relaxTlsGdToLe(uint8_t *Loc, RelType Type, uint64_t Val) const override;
122 void relaxTlsLdToLe(uint8_t *Loc, RelType Type, uint64_t Val) const override;
123 void relaxTlsIeToLe(uint8_t *Loc, RelType Type, uint64_t Val) const override;
256 void PPC64::relaxTlsGdToLe(uint8_t *Loc, RelType Type, uint64_t Val) const { in relaxTlsGdToLe()
279 relocateOne(Loc, R_PPC64_TPREL16_HA, Val); in relaxTlsGdToLe()
288 R_PPC64_TPREL16_LO, Val); in relaxTlsGdToLe()
295 void PPC64::relaxTlsLdToLe(uint8_t *Loc, RelType Type, uint64_t Val) const { in relaxTlsLdToLe()
332 relocateOne(Loc, Type, Val); in relaxTlsLdToLe()
365 void PPC64::relaxTlsIeToLe(uint8_t *Loc, RelType Type, uint64_t Val) const { in relaxTlsIeToLe()
394 relocateOne(Loc, R_PPC64_TPREL16_HA, Val); in relaxTlsIeToLe()
404 relocateOne(Loc + Offset, R_PPC64_TPREL16_LO, Val); in relaxTlsIeToLe()
529 static std::pair<RelType, uint64_t> toAddr16Rel(RelType Type, uint64_t Val) { in toAddr16Rel() argument
531 uint64_t TocBiasedVal = Val - PPC64TocOffset; in toAddr16Rel()
533 uint64_t DTPBiasedVal = Val - DynamicThreadPointerOffset; in toAddr16Rel()
597 return {Type, Val}; in toAddr16Rel()
614 void PPC64::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne()
622 std::tie(Type, Val) = toAddr16Rel(Type, Val); in relocateOne()
626 checkAlignment(Loc, Val, 4, Type); in relocateOne()
629 write16(Loc + 2, (AALK & 3) | (Val & 0xfffc)); in relocateOne()
634 checkInt(Loc, Val, 16, OriginalType); in relocateOne()
635 write16(Loc, Val); in relocateOne()
639 checkInt(Loc, Val, 16, OriginalType); in relocateOne()
643 checkAlignment(Loc, lo(Val), Mask + 1, OriginalType); in relocateOne()
644 write16(Loc, (read16(Loc) & Mask) | lo(Val)); in relocateOne()
649 if (Config->TocOptimize && ShouldTocOptimize && ha(Val) == 0) in relocateOne()
652 write16(Loc, ha(Val)); in relocateOne()
657 write16(Loc, hi(Val)); in relocateOne()
661 write16(Loc, higher(Val)); in relocateOne()
665 write16(Loc, highera(Val)); in relocateOne()
669 write16(Loc, highest(Val)); in relocateOne()
673 write16(Loc, highesta(Val)); in relocateOne()
681 if (Config->TocOptimize && ShouldTocOptimize && ha(Val) == 0) { in relocateOne()
690 write16(Loc, lo(Val)); in relocateOne()
698 checkAlignment(Loc, lo(Val), Mask + 1, OriginalType); in relocateOne()
699 if (Config->TocOptimize && ShouldTocOptimize && ha(Val) == 0) { in relocateOne()
710 write16(Loc, (read16(Loc) & Mask) | lo(Val)); in relocateOne()
714 checkInt(Loc, Val, 32, Type); in relocateOne()
715 write32(Loc, Val); in relocateOne()
720 write64(Loc, Val); in relocateOne()
724 checkInt(Loc, Val, 16, Type); in relocateOne()
725 checkAlignment(Loc, Val, 4, Type); in relocateOne()
726 write32(Loc, (read32(Loc) & ~Mask) | (Val & Mask)); in relocateOne()
731 checkInt(Loc, Val, 26, Type); in relocateOne()
732 checkAlignment(Loc, Val, 4, Type); in relocateOne()
733 write32(Loc, (read32(Loc) & ~Mask) | (Val & Mask)); in relocateOne()
737 write64(Loc, Val - DynamicThreadPointerOffset); in relocateOne()
809 void PPC64::relaxTlsGdToIe(uint8_t *Loc, RelType Type, uint64_t Val) const { in relaxTlsGdToIe()
814 relocateOne(Loc, R_PPC64_GOT_TPREL16_HA, Val); in relaxTlsGdToIe()
821 relocateOne(Loc, R_PPC64_GOT_TPREL16_LO_DS, Val); in relaxTlsGdToIe()