Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
everettjf committed Feb 17, 2022
1 parent 6120f22 commit 9f68098
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "linkmap"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
description = "🦀️linkmap file parser"
description = "🦀️Linkmap file parse library"
license = "MIT"
repository = "https://github.com/everettjf/linkmap-rs"

Expand Down
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
# linkmap-rs

Linkmap file parser for rust.
Linkmap file parse library for rust.

Usage :

> ref examples/main.rs

```rust
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);
}
```

0 comments on commit 9f68098

Please sign in to comment.