Skip to content

Elftypes

AT_CONSTANTS: Dict[int, str] = {0: 'AT_NULL', 1: 'AT_IGNORE', 2: 'AT_EXECFD', 3: 'AT_PHDR', 4: 'AT_PHENT', 5: 'AT_PHNUM', 6: 'AT_PAGESZ', 7: 'AT_BASE', 8: 'AT_FLAGS', 9: 'AT_ENTRY', 10: 'AT_NOTELF', 11: 'AT_UID', 12: 'AT_EUID', 13: 'AT_GID', 14: 'AT_EGID', 15: 'AT_PLATFORM', 16: 'AT_HWCAP', 17: 'AT_CLKTCK', 18: 'AT_FPUCW', 19: 'AT_DCACHEBSIZE', 20: 'AT_ICACHEBSIZE', 21: 'AT_UCACHEBSIZE', 22: 'AT_IGNOREPPC', 23: 'AT_SECURE', 24: 'AT_BASE_PLATFORM', 25: 'AT_RANDOM', 26: 'AT_HWCAP2', 27: 'AT_RSEQ_FEATURE_SIZE', 28: 'AT_RSEQ_ALIGN', 29: 'AT_HWCAP3', 30: 'AT_HWCAP4', 31: 'AT_EXECFN', 32: 'AT_SYSINFO', 33: 'AT_SYSINFO_EHDR', 34: 'AT_L1I_CACHESHAPE', 35: 'AT_L1D_CACHESHAPE', 36: 'AT_L2_CACHESHAPE', 37: 'AT_L3_CACHESHAPE', 40: 'AT_L1I_CACHESIZE', 41: 'AT_L1I_CACHEGEOMETRY', 42: 'AT_L1D_CACHESIZE', 43: 'AT_L1D_CACHEGEOMETRY', 44: 'AT_L2_CACHESIZE', 45: 'AT_L2_CACHEGEOMETRY', 46: 'AT_L3_CACHESIZE', 47: 'AT_L3_CACHEGEOMETRY', 51: 'AT_MINSIGSTKSZ'} module-attribute

AT_CONSTANT_NAMES = {v: kfor (k, v) in AT_CONSTANTS.items()} module-attribute

Elf32_Addr = ctypes.c_uint32 module-attribute

Elf32_Half = ctypes.c_uint16 module-attribute

Elf32_Off = ctypes.c_uint32 module-attribute

Elf32_Sword = ctypes.c_int32 module-attribute

Elf32_Word = ctypes.c_uint32 module-attribute

Elf64_Addr = ctypes.c_uint64 module-attribute

Elf64_Half = ctypes.c_uint16 module-attribute

Elf64_Off = ctypes.c_uint64 module-attribute

Elf64_SHalf = ctypes.c_int16 module-attribute

Elf64_Sword = ctypes.c_int32 module-attribute

Elf64_Sxword = ctypes.c_int64 module-attribute

Elf64_Word = ctypes.c_uint32 module-attribute

Elf64_Xword = ctypes.c_uint64 module-attribute

AUXV

Bases: Dict[str, Union[int, str]]

AT_BASE: Optional[int] instance-attribute

AT_BASE_PLATFORM: Optional[str] instance-attribute

AT_ENTRY: Optional[int] instance-attribute

AT_EXECFN: Optional[str] instance-attribute

AT_PHDR: Optional[int] instance-attribute

AT_PLATFORM: Optional[str] instance-attribute

AT_RANDOM: Optional[int] instance-attribute

AT_SYSINFO: Optional[int] instance-attribute

AT_SYSINFO_EHDR: Optional[int] instance-attribute

__getattr__(attr)

__str__()

set(const, value)

Elf32_Ehdr

Bases: Structure

Elf32_Phdr

Bases: Structure

Elf64_Ehdr

Bases: Structure

Elf64_Phdr

Bases: Structure

constants

AT_BASE = 7 class-attribute instance-attribute

AT_BASE_PLATFORM = 24 class-attribute instance-attribute

AT_CLKTCK = 17 class-attribute instance-attribute

AT_DCACHEBSIZE = 19 class-attribute instance-attribute

AT_EGID = 14 class-attribute instance-attribute

AT_ENTRY = 9 class-attribute instance-attribute

AT_EUID = 12 class-attribute instance-attribute

AT_EXECFD = 2 class-attribute instance-attribute

AT_EXECFN = 31 class-attribute instance-attribute

AT_FLAGS = 8 class-attribute instance-attribute

AT_FPUCW = 18 class-attribute instance-attribute

AT_GID = 13 class-attribute instance-attribute

AT_HWCAP = 16 class-attribute instance-attribute

AT_ICACHEBSIZE = 20 class-attribute instance-attribute

AT_IGNORE = 1 class-attribute instance-attribute

AT_IGNOREPPC = 22 class-attribute instance-attribute

AT_L1D_CACHESHAPE = 35 class-attribute instance-attribute

AT_L1I_CACHESHAPE = 34 class-attribute instance-attribute

AT_L2_CACHESHAPE = 36 class-attribute instance-attribute

AT_L3_CACHESHAPE = 37 class-attribute instance-attribute

AT_NOTELF = 10 class-attribute instance-attribute

AT_NULL = 0 class-attribute instance-attribute

AT_PAGESZ = 6 class-attribute instance-attribute

AT_PHDR = 3 class-attribute instance-attribute

AT_PHENT = 4 class-attribute instance-attribute

AT_PHNUM = 5 class-attribute instance-attribute

AT_PLATFORM = 15 class-attribute instance-attribute

AT_RANDOM = 25 class-attribute instance-attribute

AT_SECURE = 23 class-attribute instance-attribute

AT_SYSINFO = 32 class-attribute instance-attribute

AT_SYSINFO_EHDR = 33 class-attribute instance-attribute

AT_UCACHEBSIZE = 21 class-attribute instance-attribute

AT_UID = 11 class-attribute instance-attribute

DT_DEBUG = 21 class-attribute instance-attribute

DT_ENCODING = 32 class-attribute instance-attribute

DT_FINI = 13 class-attribute instance-attribute

DT_HASH = 4 class-attribute instance-attribute

DT_INIT = 12 class-attribute instance-attribute

DT_JMPREL = 23 class-attribute instance-attribute

DT_NEEDED = 1 class-attribute instance-attribute

DT_NULL = 0 class-attribute instance-attribute

DT_PLTGOT = 3 class-attribute instance-attribute

DT_PLTREL = 20 class-attribute instance-attribute

DT_PLTRELSZ = 2 class-attribute instance-attribute

DT_REL = 17 class-attribute instance-attribute

DT_RELA = 7 class-attribute instance-attribute

DT_RELAENT = 9 class-attribute instance-attribute

DT_RELASZ = 8 class-attribute instance-attribute

DT_RELENT = 19 class-attribute instance-attribute

DT_RELSZ = 18 class-attribute instance-attribute

DT_RPATH = 15 class-attribute instance-attribute

DT_SONAME = 14 class-attribute instance-attribute

DT_STRSZ = 10 class-attribute instance-attribute

DT_STRTAB = 5 class-attribute instance-attribute

DT_SYMBOLIC = 16 class-attribute instance-attribute

DT_SYMENT = 11 class-attribute instance-attribute

DT_SYMTAB = 6 class-attribute instance-attribute

DT_TEXTREL = 22 class-attribute instance-attribute

EI_ABIVERSION = 8 class-attribute instance-attribute

EI_CLASS = 4 class-attribute instance-attribute

EI_DATA = 5 class-attribute instance-attribute

EI_MAG0 = 0 class-attribute instance-attribute

EI_MAG1 = 1 class-attribute instance-attribute

EI_MAG2 = 2 class-attribute instance-attribute

EI_MAG3 = 3 class-attribute instance-attribute

EI_NIDENT = 16 class-attribute instance-attribute

EI_OSABI = 7 class-attribute instance-attribute

EI_PAD = 9 class-attribute instance-attribute

EI_VERSION = 6 class-attribute instance-attribute

ELFCLASS32 = 1 class-attribute instance-attribute

ELFCLASS64 = 2 class-attribute instance-attribute

ELFCLASSNONE = 0 class-attribute instance-attribute

ELFDATA2LSB = 1 class-attribute instance-attribute

ELFDATA2MSB = 2 class-attribute instance-attribute

ELFDATANONE = 0 class-attribute instance-attribute

ELFMAG0 = 127 class-attribute instance-attribute

ELFMAG1 = ord('E') class-attribute instance-attribute

ELFMAG2 = ord('L') class-attribute instance-attribute

ELFMAG3 = ord('F') class-attribute instance-attribute

ET_CORE = 4 class-attribute instance-attribute

ET_DYN = 3 class-attribute instance-attribute

ET_EXEC = 2 class-attribute instance-attribute

ET_NONE = 0 class-attribute instance-attribute

ET_REL = 1 class-attribute instance-attribute

NT_386_IOPERM = 513 class-attribute instance-attribute

NT_386_TLS = 512 class-attribute instance-attribute

NT_ARM_HW_BREAK = 1026 class-attribute instance-attribute

NT_ARM_HW_WATCH = 1027 class-attribute instance-attribute

NT_ARM_TLS = 1025 class-attribute instance-attribute

NT_ARM_VFP = 1024 class-attribute instance-attribute

NT_AUXV = 6 class-attribute instance-attribute

NT_FILE = 1179208773 class-attribute instance-attribute

NT_METAG_CBUF = 1280 class-attribute instance-attribute

NT_METAG_RPIPE = 1281 class-attribute instance-attribute

NT_METAG_TLS = 1282 class-attribute instance-attribute

NT_PPC_SPE = 257 class-attribute instance-attribute

NT_PPC_VMX = 256 class-attribute instance-attribute

NT_PPC_VSX = 258 class-attribute instance-attribute

NT_PRFPREG = 2 class-attribute instance-attribute

NT_PRPSINFO = 3 class-attribute instance-attribute

NT_PRSTATUS = 1 class-attribute instance-attribute

NT_PRXFPREG = 1189489535 class-attribute instance-attribute

NT_S390_CTRS = 772 class-attribute instance-attribute

NT_S390_HIGH_GPRS = 768 class-attribute instance-attribute

NT_S390_LAST_BREAK = 774 class-attribute instance-attribute

NT_S390_PREFIX = 773 class-attribute instance-attribute

NT_S390_SYSTEM_CALL = 775 class-attribute instance-attribute

NT_S390_TDB = 776 class-attribute instance-attribute

NT_S390_TIMER = 769 class-attribute instance-attribute

NT_S390_TODCMP = 770 class-attribute instance-attribute

NT_S390_TODPREG = 771 class-attribute instance-attribute

NT_SIGINFO = 1397311305 class-attribute instance-attribute

NT_TASKSTRUCT = 4 class-attribute instance-attribute

NT_X86_XSTATE = 514 class-attribute instance-attribute

PT_DYNAMIC = 2 class-attribute instance-attribute

PT_INTERP = 3 class-attribute instance-attribute

PT_LOAD = 1 class-attribute instance-attribute

PT_NOTE = 4 class-attribute instance-attribute

PT_NULL = 0 class-attribute instance-attribute

PT_PHDR = 6 class-attribute instance-attribute

PT_SHLIB = 5 class-attribute instance-attribute

PT_TLS = 7 class-attribute instance-attribute

SHT_DYNAMIC = 6 class-attribute instance-attribute

SHT_DYNSYM = 11 class-attribute instance-attribute

SHT_HASH = 5 class-attribute instance-attribute

SHT_NOBITS = 8 class-attribute instance-attribute

SHT_NOTE = 7 class-attribute instance-attribute

SHT_NULL = 0 class-attribute instance-attribute

SHT_NUM = 12 class-attribute instance-attribute

SHT_PROGBITS = 1 class-attribute instance-attribute

SHT_REL = 9 class-attribute instance-attribute

SHT_RELA = 4 class-attribute instance-attribute

SHT_SHLIB = 10 class-attribute instance-attribute

SHT_STRTAB = 3 class-attribute instance-attribute

SHT_SYMTAB = 2 class-attribute instance-attribute

STT_COMMON = 5 class-attribute instance-attribute

STT_FILE = 4 class-attribute instance-attribute

STT_FUNC = 2 class-attribute instance-attribute

STT_NOTYPE = 0 class-attribute instance-attribute

STT_OBJECT = 1 class-attribute instance-attribute

STT_SECTION = 3 class-attribute instance-attribute

STT_TLS = 6 class-attribute instance-attribute