Lines Matching defs:addRel
98 bool tryRelaxAdrpAdd(const Relocation &adrpRel, const Relocation &addRel,
798 const Relocation &addRel, uint64_t secAddr,
808 addRel.type != R_AARCH64_ADD_ABS_LO12_NC)
811 if (adrpRel.offset + 4 != addRel.offset)
813 if (adrpRel.sym != addRel.sym)
815 if (adrpRel.addend != 0 || addRel.addend != 0)
819 uint32_t addInstr = read32le(buf + addRel.offset);
832 int64_t val = sym.getVA(ctx) - (secAddr + addRel.offset);
836 Relocation adrRel = {R_ABS, R_AARCH64_ADR_PREL_LO21, addRel.offset,
904 Relocation addRel = {R_ABS, R_AARCH64_ADD_ABS_LO12_NC, ldrRel.offset,
910 write32le(buf + addRel.offset, 0x91000000 | adrpDestReg | (adrpDestReg << 5));
917 ctx.target->relocate(buf + addRel.offset, addRel,
919 tryRelaxAdrpAdd(adrpSymRel, addRel, secAddr, buf);