Lines Matching refs:rel

49   void relocate(uint8_t *loc, const Relocation &rel,
460 static void encodeAluGroup(uint8_t *loc, const Relocation &rel, uint64_t val, in encodeAluGroup() argument
479 " for relocation " + toString(rel.type)); in encodeAluGroup()
483 static void encodeLdrGroup(uint8_t *loc, const Relocation &rel, uint64_t val, in encodeLdrGroup() argument
488 if (rel.sym->isFunc()) in encodeLdrGroup()
497 checkUInt(loc, imm, 12, rel); in encodeLdrGroup()
501 static void encodeLdrsGroup(uint8_t *loc, const Relocation &rel, uint64_t val, in encodeLdrsGroup() argument
506 if (rel.sym->isFunc()) in encodeLdrsGroup()
515 checkUInt(loc, imm, 8, rel); in encodeLdrsGroup()
520 void ARM::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument
521 switch (rel.type) { in relocate()
542 checkInt(loc, val, 31, rel); in relocate()
551 assert(rel.sym); // R_ARM_CALL is always reached via relocate(). in relocate()
556 if (!rel.sym->isFunc() && isBlx != bit0Thumb) in relocate()
557 stateChangeWarning(loc, rel.type, *rel.sym); in relocate()
558 if (rel.sym->isFunc() ? bit0Thumb : isBlx) { in relocate()
560 checkInt(loc, val, 26, rel); in relocate()
575 checkInt(loc, val, 26, rel); in relocate()
580 checkInt(loc, val, 9, rel); in relocate()
585 checkInt(loc, val, 12, rel); in relocate()
590 checkInt(loc, val, 21, rel); in relocate()
607 assert(rel.sym); // R_ARM_THM_CALL is always reached via relocate(). in relocate()
612 if (!rel.sym->isFunc() && !rel.sym->isInPlt() && isBlx == bit0Thumb) in relocate()
613 stateChangeWarning(loc, rel.type, *rel.sym); in relocate()
614 if (rel.sym->isFunc() || rel.sym->isInPlt() ? !bit0Thumb : isBlx) { in relocate()
626 checkInt(loc, val, 23, rel); in relocate()
641 checkInt(loc, val, 25, rel); in relocate()
705 encodeAluGroup(loc, rel, val, 0, true); in relocate()
708 encodeAluGroup(loc, rel, val, 0, false); in relocate()
711 encodeAluGroup(loc, rel, val, 1, true); in relocate()
714 encodeAluGroup(loc, rel, val, 1, false); in relocate()
717 encodeAluGroup(loc, rel, val, 2, true); in relocate()
720 encodeLdrGroup(loc, rel, val, 0); in relocate()
723 encodeLdrGroup(loc, rel, val, 1); in relocate()
726 encodeLdrGroup(loc, rel, val, 2); in relocate()
729 encodeLdrsGroup(loc, rel, val, 0); in relocate()
732 encodeLdrsGroup(loc, rel, val, 1); in relocate()
735 encodeLdrsGroup(loc, rel, val, 2); in relocate()
745 checkUInt(loc, imm, 12, rel); in relocate()
756 if (rel.sym->isFunc()) in relocate()
758 checkUInt(loc, val, 10, rel); in relocate()
759 checkAlignment(loc, val, 4, rel); in relocate()
768 if (rel.sym->isFunc()) in relocate()
776 checkUInt(loc, imm12, 12, rel); in relocate()