B2R2.FrontEnd.BinFile Namespace
Contains APIs for working with the file format of a binary, allowing access to the file metadata and structure.
| Type/Module | Description |
|
Represents an instruction-set encoding mode, or a data region embedded in code. |
|
|
Represents a marker indicating the instruction-set encoding (or data) that takes effect at a given address, for architectures that interleave encodings within a section (notably ARM and Thumb, marked by the ELF $a/$t/$d mapping symbols). |
|
|
Represents format-agnostic exception/unwinding information for one function frame, such as a DWARF FDE in ELF/Mach-O or a RUNTIME_FUNCTION in PE x64. |
|
|
Represents a guarded code region and the handler it transfers control to on an exception, such as a DWARF call-site/landing-pad pair (ELF/Mach-O) or a PE C++ scope-table entry. |
|
|
Represents the high-level kind of a binary file, i.e., what the file is meant to be (a runnable program, a shared library, etc.), independent of the underlying file format. |
|
|
Provides convenience operations over optional capabilities of IBinFile. |
|
|
Represents a pointer to binary, which is used to exclusively point to a region of a binary that is (1) mapped to both VM and file, (2) mapped to VM only, or (3) mapped to file only. For the other cases, the pointer is considered invalid (null). The pointer internally holds inclusive ranges of the virtual addresses and the file offsets. |
|
|
Represents an imported symbol resolved through dynamic linking, e.g., a PLT/GOT pair in ELF, an IAT entry in PE, a stub/pointer pair in Mach-O, or an imported entry in Wasm. |
|
|
Represents a format-agnostic relocation: a location in the binary image whose contents are patched at link/load time, optionally referencing a symbol and applying a constant addend. |
|
|
Represents a format-agnostic binary section. |
|
|
Represents the kind of a binary section. |
|
|
Represents a format-agnostic, memory-mapped segment of a binary, i.e., a consecutive region that is mapped into the virtual memory when the binary is loaded. |
|
|
Represents a format-agnostic symbol-table entry. |
|
|
Represents the linkage binding of a symbol. |
|
|
Represents a coarse, format-agnostic classification of a symbol. |
|
|
Represents an ELF binary file. |
|
|
Provides functions to work with FileFormat. |
|
|
Represents the file format of a binary. |
|
|
Provides a function to detect the file format of a binary. |
|
|
Represents the address space of a binary file: it maps an address to the raw content, and answers validity and file-mapping queries for addresses. |
|
|
Represents a format-agnostic binary file interface. |
|
|
Represents an interface for accessing binary file metadata, such as its path, and file format. |
|
|
Represents an interface for accessing the basic properties of a binary file. |
|
|
Represents the structural view of a binary file, such as its sections and functions. |
|
|
Represents the exception (unwinding) table of a binary file. |
|
|
Represents an interface for accessing the import table of a binary file, i.e., the linkage table (PLT/GOT, IAT, etc.) that resolves dynamically linked symbols. |
|
|
Represents the virtual-memory layout of a binary: the set of segments that are mapped into the virtual memory when the binary is loaded. Binary formats without a native VM layout (e.g., bytecode containers) do not provide this interface. |
|
|
Raised when accessing an invalid address of a binary file. |
|
|
Raised when an unexpected file format is detected. |
|
|
Represents an interface for accessing the relocation table in a binary file. |
|
|
Represents the symbol table of a binary file. |
|
|
Represents a Mach-O binary file. |
|
|
Provides helpers for building name resolvers on top of binary-file tables. |
|
|
Represents a PE binary file. |
|
|
Provides functions to work with Permission. |
|
|
Represents a file permission. Each permission corresponds to a bit, and thus, multiple permissions can be OR-ed. |
|
|
Represents a Python binary file. |
|
|
Represents a raw binary file (containing only binary code and data without file format). |
|
|
Raised when a section is not found. |
|
|
Represents a Web Assembly (Wasm) binary file. |
B2R2