Lines Matching refs:rel
46 const relocation_info &rel) { in getErrorLocation() argument
47 return ("invalid relocation at offset " + std::to_string(rel.r_address) + in getErrorLocation()
54 const relocation_info &rel, in validateLength() argument
56 if (find(validLengths, rel.r_length) != validLengths.end()) in validateLength()
59 std::string msg = getErrorLocation(mb, sec, rel) + ": relocations of type " + in validateLength()
60 std::to_string(rel.r_type) + " must have r_length of "; in validateLength()
72 const relocation_info &rel) const { in getImplicitAddend()
74 const uint8_t *loc = buf + sec.offset + rel.r_address; in getImplicitAddend()
76 if (isThreadLocalVariables(sec.flags) && rel.r_type != X86_64_RELOC_UNSIGNED) in getImplicitAddend()
80 switch (rel.r_type) { in getImplicitAddend()
84 validateLength(mb, sec, rel, {2}); in getImplicitAddend()
93 if (!rel.r_pcrel) in getImplicitAddend()
94 fatal(getErrorLocation(mb, sec, rel) + ": relocations of type " + in getImplicitAddend()
95 std::to_string(rel.r_type) + " must be pcrel"); in getImplicitAddend()
96 validateLength(mb, sec, rel, {2}); in getImplicitAddend()
99 if (rel.r_pcrel) in getImplicitAddend()
100 fatal(getErrorLocation(mb, sec, rel) + ": relocations of type " + in getImplicitAddend()
101 std::to_string(rel.r_type) + " must not be pcrel"); in getImplicitAddend()
102 validateLength(mb, sec, rel, {2, 3}); in getImplicitAddend()
105 error("TODO: Unhandled relocation type " + std::to_string(rel.r_type)); in getImplicitAddend()
109 switch (rel.r_length) { in getImplicitAddend()