Skip to content

Commit

Permalink
Revert "Dependencies updated."
Browse files Browse the repository at this point in the history
This reverts commit 5c535f4.
  • Loading branch information
RazrFalcon committed Jun 20, 2019
1 parent 2f911a2 commit da04eca
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 39 deletions.
72 changes: 36 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ license = "MIT"
edition = "2018"

[dependencies]
goblin = "0.0.22" # the same version as in `object`
goblin = "0.0.19" # the same version as in `object`
memmap = "0.7"
multimap = "0.5"
object = { version = "0.12", default-features = false, features = ["std", "compression"] }
object = { version = "0.11", default-features = false, features = ["std", "compression"] }
regex = "1"
rustc-demangle = "0.1.6"
serde = "1"
Expand Down
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,12 @@ fn collect_self_data(path: &path::Path) -> Result<Data, Error> {
let mut total_size = 0;
let mut list = Vec::new();
for symbol in file.symbol_map().symbols() {
if symbol.is_undefined() || symbol.kind() != object::SymbolKind::Text {
match symbol.kind() {
object::SymbolKind::Section | object::SymbolKind::File => continue,
_ => {}
}

if symbol.section_kind() != Some(object::SectionKind::Text) {
continue;
}

Expand Down

0 comments on commit da04eca

Please sign in to comment.