Lines Matching refs:consts
29 from vts.utils.python.library.elf import consts
87 e_ident = self._SeekRead(0, consts.EI_NIDENT)
89 if e_ident[:4] != consts.ELF_MAGIC_NUMBER:
92 if utils.ByteToInt(e_ident[consts.EI_CLASS]) not in (
93 consts.ELFCLASS32, consts.ELFCLASS64):
95 .format(e_ident[consts.EI_CLASS]))
97 if utils.ByteToInt(e_ident[consts.EI_DATA]) != consts.ELFDATA2LSB:
99 .format(e_ident[consts.EI_DATA]))
104 if utils.ByteToInt(e_ident[consts.EI_CLASS]) == consts.ELFCLASS32:
330 if dyn.d_tag == consts.DT_NULL:
443 if rel.sh_type == consts.SHT_RELA:
459 if rel.sh_type in (consts.SHT_ANDROID_REL, consts.SHT_ANDROID_RELA):
461 if rel.sh_type == consts.SHT_ANDROID_REL:
465 elif rel.sh_type in (consts.SHT_RELR, consts.SHT_ANDROID_RELR):
514 group_flags & consts.RELOCATION_GROUPED_BY_INFO_FLAG)
516 group_flags & consts.RELOCATION_GROUPED_BY_OFFSET_DELTA_FLAG)
518 group_flags & consts.RELOCATION_GROUPED_BY_ADDEND_FLAG)
520 group_flags & consts.RELOCATION_GROUP_HAS_ADDEND_FLAG)
563 if dyn.d_tag == consts.DT_NEEDED:
565 elif dyn.d_tag == consts.DT_RUNPATH:
567 elif dyn.d_tag == consts.DT_STRTAB:
581 return {consts.DT_NEEDED: dt_needed, consts.DT_RUNPATH: dt_runpath}
585 return self.Ehdr.e_type == consts.ET_EXEC
589 return self.Ehdr.e_type == consts.ET_DYN
610 for abi_prefix, machine in (("arm64", consts.EM_AARCH64),
611 ("arm", consts.EM_ARM),
612 ("mips64", consts.EM_MIPS),
613 ("mips", consts.EM_MIPS),
614 ("x86_64", consts.EM_X86_64),
615 ("x86", consts.EM_386)):
630 if sh.sh_type == consts.SHT_DYNAMIC:
632 deps.extend(dynamic[consts.DT_NEEDED])
633 runpaths.extend(dynamic[consts.DT_RUNPATH])
637 symtab_name=consts.SYMTAB,
638 strtab_name=consts.STRTAB):
657 include_bindings = [consts.STB_GLOBAL]
659 include_bindings.append(consts.STB_WEAK)
665 if sym.GetType() == consts.STT_NOTYPE:
669 if sym.st_shndx == consts.SHN_UNDEF:
687 consts.DYNSYM, consts.DYNSTR)
700 if ph.p_type == consts.PT_INTERP: