Skip to content

probe-web / @probe-web/client / index / elfSymbol

Variable: elfSymbol

ts
const elfSymbol: (elf, name) => bigint | undefined = elfSymbolJs;

Defined in: index.ts:44

Address of a symbol in an ELF (exact name).

Re-exported from @probe-web/client/elf, which is plain JavaScript and pulls in no wasm — import it from there if a symbol lookup is all you need.

The address of name in elf, or undefined if it has no such symbol.

Reads .symtab, falling back to .dynsym. Returns the raw st_value; for a Cortex-M thumb function that includes the low bit the linker sets, exactly as the symbol table records it.

Parameters

ParameterType
elfUint8Array
namestring

Returns

bigint | undefined