parse_readelf_output

Function parse_readelf_output 

Source
pub fn parse_readelf_output(output: &str) -> Result<Vec<String>>
Expand description

Parse readelf -d output to extract NEEDED library names.

Example readelf output:

Dynamic section at offset 0x2d0e0 contains 28 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libtinfo.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]