dissect.executable.elf.elf
¶
Module Contents¶
Classes¶
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
Attributes¶
- class dissect.executable.elf.elf.ELF(fh: BinaryIO)¶
- property dynamic: bool¶
- __repr__() str ¶
Return repr(self).
- dissect.executable.elf.elf.T¶
- class dissect.executable.elf.elf.Table(entries: int)¶
Bases:
Generic
[T
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- __iter__() Iterator[T] ¶
- __getitem__(idx: int) T ¶
- find(condition: Callable, **kwargs) list[T] ¶
- class dissect.executable.elf.elf.Section(fh: BinaryIO, idx: int | None = None, c_elf: dissect.cstruct.cstruct = c_elf_64)¶
- property name: str | None¶
- __repr__() str ¶
Return repr(self).
- classmethod from_section_table(section_table: SectionTable, idx: int) Section ¶
- class dissect.executable.elf.elf.SectionTable(fh: BinaryIO, offset: int, entries: int, size: int, string_index: int | None = None, c_elf: dissect.cstruct.cstruct = c_elf_64)¶
-
Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- __repr__() str ¶
Return repr(self).
- classmethod from_elf(elf: ELF) SectionTable ¶
- class dissect.executable.elf.elf.Segment(fh: BinaryIO, idx: int | None = None, c_elf: dissect.cstruct.cstruct = c_elf_64)¶
- property end: int¶
- __repr__() str ¶
Return repr(self).
- classmethod from_segment_table(table: SegmentTable, idx: int | None = None) Segment ¶
- class dissect.executable.elf.elf.SegmentTable(fh: BinaryIO, offset: int, entries: int, size: int, c_elf: dissect.cstruct.cstruct = c_elf_64)¶
-
Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- __repr__() str ¶
Return repr(self).
- classmethod from_elf(elf: ELF) SegmentTable ¶
- dump_data() list[tuple[int, bytearray]] ¶
- dump_table() tuple[int, bytearray] ¶
- class dissect.executable.elf.elf.StringTable(fh: BinaryIO, idx: int | None = None, c_elf: dissect.cstruct.cstruct = c_elf_64)¶
Bases:
Section
- __getitem__(offset: int) str ¶
- class dissect.executable.elf.elf.Symbol(fh: BinaryIO, idx: int | None = None, c_elf: dissect.cstruct.cstruct = c_elf_64)¶
- property name: str¶
- property value: int¶
- __repr__() str ¶
Return repr(self).
- classmethod from_symbol_table(table: SymbolTable, idx: int) Symbol ¶
- value_based_on_shndx(table: SectionTable) int ¶
- class dissect.executable.elf.elf.SymbolTable(fh: BinaryIO, idx: int | None = None, c_elf: dissect.cstruct.cstruct = c_elf_64)¶
-
Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default