Lines Matching refs:rel
45 const relocation_info &rel) {
46 return ("invalid relocation at offset " + std::to_string(rel.r_address) +
53 const relocation_info &rel,
55 if (std::find(validLengths.begin(), validLengths.end(), rel.r_length) !=
59 std::string msg = getErrorLocation(mb, sec, rel) + ": relocations of type " +
60 std::to_string(rel.r_type) + " must have r_length of ";
72 const relocation_info &rel) const {
74 const uint8_t *loc = buf + sec.offset + rel.r_address;
75 switch (rel.r_type) {
79 validateLength(mb, sec, rel, {2});
87 if (!rel.r_pcrel)
88 fatal(getErrorLocation(mb, sec, rel) + ": relocations of type " +
89 std::to_string(rel.r_type) + " must be pcrel");
90 validateLength(mb, sec, rel, {2});
93 if (rel.r_pcrel)
94 fatal(getErrorLocation(mb, sec, rel) + ": relocations of type " +
95 std::to_string(rel.r_type) + " must not be pcrel");
96 validateLength(mb, sec, rel, {2, 3});
99 error("TODO: Unhandled relocation type " + std::to_string(rel.r_type));
103 switch (rel.r_length) {