LinkAgainstFinder 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +3 -1
- data/lib/LinkAgainstFinder/objdump.rb +14 -0
- data/lib/LinkAgainstFinder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a4f0339cd324586adc86377bb0b12b010764f765c604bd83c6b9e631d9f2e7e
|
4
|
+
data.tar.gz: c5f8a97794dae151ed214bc863c224bff61830711efefbc66aa6ef6c94b3c69f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a0ce5189bd3b8dffa4dcb89a4d73926c976d43b0d6ec80360729cbed74722dfb58272d22078c8fdcc71af302584e77b7f716b420cbb7a04f8bb9eb8ab20e7c2
|
7
|
+
data.tar.gz: 30f5780abd54ffe626239fb73640e99dc6ce1b5708a5bf66b8e4da406b004ada16cddb5ca286f3874cb483a8a48ae55a5ac5943ccc15ed232c5ec053e3684a28
|
data/.idea/workspace.xml
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="efc6ee81-c3ff-495b-b1aa-0b001b799fa0" name="Default Changelist" comment="">
|
5
5
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
6
|
+
<change beforePath="$PROJECT_DIR$/lib/LinkAgainstFinder/objdump.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/LinkAgainstFinder/objdump.rb" afterDir="false" />
|
6
7
|
<change beforePath="$PROJECT_DIR$/lib/LinkAgainstFinder/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/LinkAgainstFinder/version.rb" afterDir="false" />
|
7
8
|
</list>
|
8
9
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
@@ -81,7 +82,8 @@
|
|
81
82
|
<updated>1572519494008</updated>
|
82
83
|
<workItem from="1572519495052" duration="8944000" />
|
83
84
|
<workItem from="1572754070238" duration="302000" />
|
84
|
-
<workItem from="1572768234441" duration="
|
85
|
+
<workItem from="1572768234441" duration="80000" />
|
86
|
+
<workItem from="1572774649008" duration="582000" />
|
85
87
|
</task>
|
86
88
|
<servers />
|
87
89
|
</component>
|
@@ -7,6 +7,7 @@ module LinkAgainstFinder
|
|
7
7
|
def initialize(binary_path)
|
8
8
|
self.binary_path = Pathname.new(binary_path)
|
9
9
|
raise "File not exist" unless self.binary_path.exist?
|
10
|
+
checkObjdumpVersion
|
10
11
|
end
|
11
12
|
|
12
13
|
attr_accessor :binary_path
|
@@ -53,6 +54,19 @@ module LinkAgainstFinder
|
|
53
54
|
table
|
54
55
|
end
|
55
56
|
|
57
|
+
def checkObjdumpVersion
|
58
|
+
next if @@checked
|
59
|
+
output = `objdump --version`
|
60
|
+
if $?.exitstatus != 0
|
61
|
+
raise "Need objdump in commandline!"
|
62
|
+
end
|
63
|
+
firstLine =output.split("\n")[0]
|
64
|
+
if !firstLine.include?('11.0')
|
65
|
+
raise "Need objdump v11.0!"
|
66
|
+
end
|
67
|
+
@@checked = true
|
68
|
+
end
|
69
|
+
|
56
70
|
end
|
57
71
|
|
58
72
|
class Objdump
|