Lines Matching refs:ELF
332 class ELF(object): class
395 return ELF._dict_find_key_by_value(ELF._ELF_CLASS_NAMES, name)
399 return ELF._dict_find_key_by_value(ELF._ELF_DATA_NAMES, name)
403 return ELF._dict_find_key_by_value(ELF.ELF_MACHINES, name)
454 return self.ei_class == ELF.ELFCLASS32
458 return self.ei_class == ELF.ELFCLASS64
517 if buf[0:4] != ELF.ELF_MAGIC:
520 self.ei_class = buf[ELF.EI_CLASS]
521 if self.ei_class not in (ELF.ELFCLASS32, ELF.ELFCLASS64):
524 self.ei_data = buf[ELF.EI_DATA]
525 if self.ei_data not in (ELF.ELFDATA2LSB, ELF.ELFDATA2MSB):
531 endian_fmt = '<' if self.ei_data == ELF.ELFDATA2LSB else '>'
607 if phdr.p_type != ELF.PT_LOAD:
609 if phdr.p_flags & ELF.PF_W:
656 if ent.d_tag == ELF.DT_NEEDED:
658 elif ent.d_tag == ELF.DT_RPATH:
661 elif ent.d_tag == ELF.DT_RUNPATH:
714 self.ei_class = ELF.get_ei_class_from_name(value)
716 self.ei_data = ELF.get_ei_data_from_name(value)
718 self.e_machine = ELF.get_e_machine_from_name(value)
756 elf = ELF()
763 elf = ELF()
770 elf = ELF()
777 elf = ELF()
1305 yield (path, ELF.load(path))
1314 yield (path[0:-4], ELF.load_dump(path))
1810 for elf_class in (ELF.ELFCLASS32, ELF.ELFCLASS64):
1823 lib_dir = 'lib' if elf_class == ELF.ELFCLASS32 else 'lib64'
1889 if elf.e_machine not in ELF.ELF_MACHINES:
2057 self._resolve_elf_class_deps('lib', ELF.ELFCLASS32, generic_refs)
2058 self._resolve_elf_class_deps('lib64', ELF.ELFCLASS64, generic_refs)
2521 self.add(lib_path, ELF.load_dump(path))
2705 ELF.load(args.path).dump()