B2R2


ExternalFunction Type

External function is a function that is defined in another binary. Functions in PLT is also considered as an external function, and we always link a PLT entry with its corresponding GOT entry to consider such a pair as an external function, where its entry is located at the GOT and its trampoline is at the PLT.

Instance members

Instance member Description

this.TrampolineAddr(addr)

Full Usage: this.TrampolineAddr(addr)

Parameters:
    addr : byref<Addr>

Returns: bool

If there is a trampoline (e.g., PLT) for the external function, this function returns the address of it.

addr : byref<Addr>
Returns: bool

Static members

Static member Description

ExternalFunction.Init(entry) (name) (trampoline)

Full Usage: ExternalFunction.Init(entry) (name) (trampoline)

Parameters:
    entry : Addr
    name : string
    trampoline : uint64

Returns: ExternalFunction

Create a new ExternalFunction.

entry : Addr
name : string
trampoline : uint64
Returns: ExternalFunction