Header menu logo B2R2

IBinOrganization Type

Represents an interface for accessing the binary file organization, such as sections and functions.

Instance members

Instance member Description

this.GetFunctionAddresses

Full Usage: this.GetFunctionAddresses

Returns: Addr[] An array of function addresses.
Modifiers: abstract

Returns an array of local function addresses (excluding external functions) from a given BinFile. This function only considers addresses that are certain. We do not include the entry point address (e.g., _start) in the result, because it is not necessarily a function address in general.

Returns: Addr[]

An array of function addresses.

this.GetSectionPointer

Full Usage: this.GetSectionPointer

Parameters:
    name : string

Returns: BinFilePointer
Modifiers: abstract

Returns a binary file pointer of the given section whose name is given as an argument. The resulting pointer will point to the beginning of the section. If the address is not in any section, then this function returns a null pointer.

name : string
Returns: BinFilePointer

this.GetTextSectionPointer

Full Usage: this.GetTextSectionPointer

Returns: BinFilePointer
Modifiers: abstract

Returns a binary file pointer that points to the beginning of the text section, e.g., ".text" section of ELF.

Returns: BinFilePointer

this.IsInTextOrDataOnlySection

Full Usage: this.IsInTextOrDataOnlySection

Parameters:
Returns: bool
Modifiers: abstract

Checks if the given address is within the text or data-only section of the binary. This function is useful for checking jump tables, which are usually located in a text or a data-only section.

addr : Addr
Returns: bool

Type something to start searching.