dynamicSymbolFor method

Symbol? dynamicSymbolFor(
  1. String name
)

Lookup of a dynamic symbol by name.

Returns -1 if there is no dynamic symbol that matches name.

Implementation

Symbol? dynamicSymbolFor(String name) {
  for (final section in namedSections('.dynsym')) {
    final dynsym = section as SymbolTable;
    if (dynsym.containsKey(name)) return dynsym[name];
  }
  return null;
}