parseReadelfSegments
fn
ReadelfSegment[] parseReadelfSegments(string output)Parser for readelf -lW (wide) output.
In wide mode each program header is printed on a single line: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags... Align. The flags column may contain multiple space-separated tokens (for example "R E"), and INTERP entries are followed by a bracketed annotation line which is ignored.
Parameters
output | The stdout output from the readelf -lW command. |
Returns
Array of ReadelfSegment structs containing parsed segment information.
Throws
Exception if the output cannot be parsed.