rex-arch 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/arch.rb +10 -0
- data/lib/rex/arch/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6bd19051b11209be4f0c0db5db905ccfedc8b10
|
4
|
+
data.tar.gz: 59b1de37709d3dd1d02ad8a1b2ea0ca22f392f52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fb06378add349cb89e2404a297dd10ff1fc60fdec6bb1f47a7bd429c6ead9acedd86715aab487fbbc122633ae6cfd8f15babbb8d471d60598390cb5824416db
|
7
|
+
data.tar.gz: 6e15efca9442ec59778d0aa5e1185c5cf300385dc96906b8e03b2c3d7c65ef4c34105fe449b51d560d691d52e922f63adddbd9bebd0d23923c07ca9b9c11d893
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rex/arch.rb
CHANGED
@@ -33,12 +33,14 @@ module Arch
|
|
33
33
|
ARCH_MIPSLE = 'mipsle',
|
34
34
|
ARCH_MIPSBE = 'mipsbe',
|
35
35
|
ARCH_MIPS64 = 'mips64',
|
36
|
+
ARCH_MIPS64LE = 'mips64le',
|
36
37
|
ARCH_PPC = 'ppc',
|
37
38
|
ARCH_PPC64 = 'ppc64',
|
38
39
|
ARCH_PPC64LE = 'ppc64le',
|
39
40
|
ARCH_CBEA = 'cbea',
|
40
41
|
ARCH_CBEA64 = 'cbea64',
|
41
42
|
ARCH_SPARC = 'sparc',
|
43
|
+
ARCH_SPARC64 = 'sparc64',
|
42
44
|
ARCH_ARMLE = 'armle',
|
43
45
|
ARCH_ARMBE = 'armbe',
|
44
46
|
ARCH_AARCH64 = 'aarch64',
|
@@ -102,12 +104,16 @@ module Arch
|
|
102
104
|
[addr].pack('V')
|
103
105
|
when ARCH_MIPS64
|
104
106
|
[addr].pack('Q>')
|
107
|
+
when ARCH_MIPS64LE
|
108
|
+
[addr].pack('Q<')
|
105
109
|
when ARCH_PPC # ambiguous
|
106
110
|
[addr].pack('N')
|
107
111
|
when ARCH_PPC64LE
|
108
112
|
[addr].pack('Q<')
|
109
113
|
when ARCH_SPARC
|
110
114
|
[addr].pack('N')
|
115
|
+
when ARCH_SPARC64
|
116
|
+
[addr].pack('Q>')
|
111
117
|
when ARCH_ARMLE
|
112
118
|
[addr].pack('V')
|
113
119
|
when ARCH_ARMBE
|
@@ -143,12 +149,16 @@ module Arch
|
|
143
149
|
return ENDIAN_BIG
|
144
150
|
when ARCH_MIPS64
|
145
151
|
return ENDIAN_BIG
|
152
|
+
when ARCH_MIPS64LE
|
153
|
+
return ENDIAN_LITTLE
|
146
154
|
when ARCH_PPC # ambiguous
|
147
155
|
return ENDIAN_BIG
|
148
156
|
when ARCH_PPC64LE
|
149
157
|
return ENDIAN_LITTLE
|
150
158
|
when ARCH_SPARC
|
151
159
|
return ENDIAN_BIG
|
160
|
+
when ARCH_SPARC64
|
161
|
+
return ENDIAN_BIG
|
152
162
|
when ARCH_ARMLE
|
153
163
|
return ENDIAN_LITTLE
|
154
164
|
when ARCH_ARMBE
|
data/lib/rex/arch/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rex-arch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dmohanty-r7
|
@@ -88,7 +88,7 @@ cert_chain:
|
|
88
88
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
89
89
|
8mVuTXnyJOKRJA==
|
90
90
|
-----END CERTIFICATE-----
|
91
|
-
date: 2017-05-
|
91
|
+
date: 2017-05-30 00:00:00.000000000 Z
|
92
92
|
dependencies:
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|