parseReadelfSymbols

fnReadelfSymbol[] parseReadelfSymbols(string output)

Parser for readelf -sW (wide) output.

Handles rows with and without a symbol name, decimal size and value columns, and strips the trailing version marker (for example (2)) that readelf appends to versioned symbol names.

Parameters

outputThe stdout output from the readelf -sW command.

Returns

Array of ReadelfSymbol structs containing parsed symbol information.

Throws

Exception if the output cannot be parsed.