Blame 0001-Revert-Revert-Dependencies-updated.patch

019676
From 5df806acf77bca5cf6e530c7a04710dce0f854f1 Mon Sep 17 00:00:00 2001
019676
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
019676
Date: Sat, 22 Jun 2019 12:33:25 +0200
019676
Subject: [PATCH] Revert "Revert "Dependencies updated.""
019676
019676
This reverts commit da04eca990b011f26d6c67efa8d02569ed05b320.
019676
---
019676
 src/main.rs | 7 +------
019676
 1 file changed, 1 insertion(+), 6 deletions(-)
019676
019676
diff --git a/src/main.rs b/src/main.rs
019676
index 2a68ce1..e2f0680 100644
019676
--- a/src/main.rs
019676
+++ b/src/main.rs
019676
@@ -707,12 +707,7 @@ fn collect_self_data(path: &path::Path) -> Result<data, error=""> {
019676
     let mut total_size = 0;
019676
     let mut list = Vec::new();
019676
     for symbol in file.symbol_map().symbols() {
019676
-        match symbol.kind() {
019676
-            object::SymbolKind::Section | object::SymbolKind::File => continue,
019676
-            _ => {}
019676
-        }
019676
-
019676
-        if symbol.section_kind() != Some(object::SectionKind::Text) {
019676
+        if symbol.is_undefined() || symbol.kind() != object::SymbolKind::Text {
019676
             continue;
019676
         }
019676
 
019676
-- 
019676
2.22.0
019676