Header menu logo B2R2

IRelocationTable Type

Represents an interface for accessing the relocation table in a binary file.

Instance members

Instance member Description

this.IsRelocationAddr

Full Usage: this.IsRelocationAddr

Parameters:
Returns: bool True if the address has relocation information, false otherwise.
Modifiers: abstract

Checks if the given address has relocation information.

arg0 : Addr
Returns: bool

True if the address has relocation information, false otherwise.

this.Relocations

Full Usage: this.Relocations

Returns: BinRelocation[]
Modifiers: abstract

Returns an array of all the relocations in the binary.

Returns: BinRelocation[]

this.TryGetInternalFunctionAddr

Full Usage: this.TryGetInternalFunctionAddr

Parameters:
    relocAddr : Addr - Virtual address to be relocated.

Returns: Result<Addr, ErrorCase> Returns the address of the internal function on success.
Modifiers: abstract

Tries to resolve the relocation at the given address to a function that is defined within this binary itself (rather than imported from another module). This covers a relocation targeting a locally-defined function and an ifunc resolver referenced by an IRELATIVE-style relocation, both of which occur in statically linked binaries.

relocAddr : Addr

Virtual address to be relocated.

Returns: Result<Addr, ErrorCase>

Returns the address of the internal function on success.

this.TryGetRelocatedAddr

Full Usage: this.TryGetRelocatedAddr

Parameters:
    relocAddr : Addr - Virtual address to be relocated.

Returns: Result<Addr, ErrorCase> Returns a relocated address for a given virtual address.
Modifiers: abstract

Returns a relocation target address of the given virtual address if there is a corresponding relocation entry.

relocAddr : Addr

Virtual address to be relocated.

Returns: Result<Addr, ErrorCase>

Returns a relocated address for a given virtual address.

Type something to start searching.