ElfBuilder.addSymbol

ElfBuilder addSymbol(string name, uint sectionIndex, uint binding, uint type, ulong value = 0, ulong size = 0)

Add a symbol to the symbol table.

The symbol name is automatically added to the string table.

Parameters

nameThe symbol name.
sectionIndexThe section index the symbol belongs to.
bindingThe symbol binding (local, global, weak).
typeThe symbol type (object, function, etc.).
valueThe symbol value.
sizeThe symbol size.

Returns

This builder for method chaining.