SymbolTableBuilder.addSymbol
size_t addSymbol(uint name, ulong value, ulong size,
types.SymbolBinding binding, types.SymbolType type,
ushort section, types.SymbolVisibility visibility = types.SymbolVisibility.DEFAULT)Add a symbol to the symbol table.
If the symbol is local, it is added before all global symbols. If the symbol is global or weak, it is added after all local symbols.
Parameters
name | The symbol name (string table index). |
value | The symbol's value/address. |
size | The symbol's size. |
binding | The symbol's binding. |
type | The symbol's type. |
section | The section index or special value. |
visibility | The symbol's visibility (default). |
Returns
The symbol's index in the table.