angr.analyses.decompiler.known_patterns.symbols

Symbol names as the portable spelling of an address.

A pattern lifted from one binary pins the addresses it saw; the same global lives elsewhere in every other build. Naming the symbol instead lets the pattern match wherever the loader can find that name.

angr.analyses.decompiler.known_patterns.symbols.symbol_name_at(loader, addr)

The unversioned name of the symbol at addr, or None.

Return type:

str | None

Parameters:
  • loader (Loader)

  • addr (int)

angr.analyses.decompiler.known_patterns.symbols.symbol_addr(loader, name)

Where name lives in this binary, or None if it has no such symbol.

Return type:

int | None

Parameters:
  • loader (Loader)

  • name (str)