parseLddOutput

Parses the output from a run of 'ldd' on a binary.

parseLddOutput
(
T
)
()
if (
std_.range.isInputRange!T
)

Parameters

input T

an input range of lines which is the output from ldd

Example

writeln(parseLddOutput(`
    linux-vdso.so.1 =>  (0x00007fffbf5fe000)
    libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fe28117f000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe280f7b000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe280bb4000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fe2813dd000)
`))

Return Value

a dictionary of {path: address} for each library required by the specified binary.

Meta