ElfEditor.addSymbol

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

Add a symbol to the symbol 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 editor for method chaining.