Lines Matching refs:ELF
440 class ELF(object): class
505 return ELF._dict_find_key_by_value(ELF._ELF_CLASS_NAMES, name)
510 return ELF._dict_find_key_by_value(ELF._ELF_DATA_NAMES, name)
515 return ELF._dict_find_key_by_value(ELF.ELF_MACHINES, name)
572 return self.ei_class == ELF.ELFCLASS32
577 return self.ei_class == ELF.ELFCLASS64
642 if buf[0:4] != ELF.ELF_MAGIC:
645 self.ei_class = buf[ELF.EI_CLASS]
646 if self.ei_class not in (ELF.ELFCLASS32, ELF.ELFCLASS64):
649 self.ei_data = buf[ELF.EI_DATA]
650 if self.ei_data not in (ELF.ELFDATA2LSB, ELF.ELFDATA2MSB):
656 endian_fmt = '<' if self.ei_data == ELF.ELFDATA2LSB else '>'
733 if phdr.p_type != ELF.PT_LOAD:
735 if phdr.p_flags & ELF.PF_W:
783 if ent.d_tag == ELF.DT_NEEDED:
785 elif ent.d_tag == ELF.DT_RPATH:
788 elif ent.d_tag == ELF.DT_RUNPATH:
844 self.ei_class = ELF.get_ei_class_from_name(value)
846 self.ei_data = ELF.get_ei_data_from_name(value)
848 self.e_machine = ELF.get_e_machine_from_name(value)
889 elf = ELF()
897 elf = ELF()
905 elf = ELF()
913 elf = ELF()
1736 yield (norm_path(path), ELF.loads(content))
1743 yield (norm_path(path), ELF.load(path))
2303 for elf_class in (ELF.ELFCLASS32, ELF.ELFCLASS64):
2317 lib_dir = 'lib' if elf_class == ELF.ELFCLASS32 else 'lib64'
2390 if elf.e_machine not in ELF.ELF_MACHINES:
2653 self._resolve_elf_class_deps('lib', ELF.ELFCLASS32, generic_refs)
2654 self._resolve_elf_class_deps('lib64', ELF.ELFCLASS64, generic_refs)
3136 self.add(lib_path, ELF.load_dump(path))
3367 ELF.load(args.path).dump()