Lines Matching refs:rel
365 def GetRelocationSymbol(self, symtab, rel): argument
378 return self.GetSymbol(symtab, rel.GetSymbol())
395 def _DecodeAndroidRelr(self, rel): argument
415 for ent_offset in range(rel.sh_offset, rel.sh_offset + rel.sh_size,
416 rel.sh_entsize):
424 for bit_idx in range(1, rel.sh_entsize * 8):
429 def GetRelocation(self, rel, idx): argument
442 off = rel.sh_offset + idx * rel.sh_entsize
443 if rel.sh_type == consts.SHT_RELA:
447 def GetRelocations(self, rel): argument
459 if rel.sh_type in (consts.SHT_ANDROID_REL, consts.SHT_ANDROID_RELA):
460 relocations = self._UnpackAndroidRela(rel)
461 if rel.sh_type == consts.SHT_ANDROID_REL:
465 elif rel.sh_type in (consts.SHT_RELR, consts.SHT_ANDROID_RELR):
466 return self._DecodeAndroidRelr(rel)
468 num = int(rel.sh_size // rel.sh_entsize)
469 return (self.GetRelocation(rel, i) for i in range(num))