2 releases

0.1.1 Feb 17, 2022
0.1.0 Feb 17, 2022

#87 in #section

MIT license

13KB
254 lines

linkmap-rs

Linkmap file parse library for rust.

Usage :

ref examples/main.rs

  let linkmap = linkmap::parse_linkmap(&path, true)?;

  println!("path : {}", linkmap.path);
  println!("arch : {}", linkmap.arch);
  println!("object files:");
  for file in &linkmap.object_files {
      println!("{:?}", file);
  }
  println!("sections:");
  for section in &linkmap.sections {
      println!("{:?}", section);
  }
  println!("symbols:");
  for symbol in &linkmap.symbols {
      println!("{:?}", symbol);
  }
  println!("dead_stripped_symbols:");
  for symbol in &linkmap.dead_stripped_symbols {
      println!("{:?}", symbol);
  }

Dependencies

~1MB
~24K SLoC