1.5 KiB
1.5 KiB
title | summary |
---|---|
symbol.h | basic functions to define and resolve symbols |
symbol_type_E
- enum
- Function
- Variable
- Unknown
symbol_T
- struct
Name | Type | Description |
---|---|---|
name | string_t | The name of the symbol (e.g. the name of the kernels entry symbol would be _start |
type | symbol_type_E | The symbols type (elf types like File are of type Unknown ) |
address | uint64_t | The symbols address |
symbol_resolve_from_name(symbols, num_symbols, name);
- function (symbol_T*)
This searches symbols for a symbol with a matching name.
symbol_resolve_from_rip(symbols, num_symbols, rip);
- function (symbol_T*)
Give it a list of symbols and an instruction pointer (rip) and it will return the symbol (function), where rip lays in.