elftools 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70f9ff0d778b851c704b44d8c12d49ee95387ccc4f90a9417741d2ea81ed30d5
4
- data.tar.gz: 731f4292e74e277e3c34eba6f3380fab44c8ce165074841365128a2a704b2f85
3
+ metadata.gz: ef6779875e27077da47848a95cef46ee26be52e56e763c0850dbd2e22e7e100b
4
+ data.tar.gz: a9b422a4fb0a11a08036e222475110f9a9f6f788ce8c775d6e67d0e6f1b5a9c6
5
5
  SHA512:
6
- metadata.gz: 1e02ff06057fdfcad4b234239b2e2a4e0f07062a2b1802e38071e87a67287da5780321f739fd678daaa7495f02a12be6cb0dd7862073d9758daaaadac7c13209
7
- data.tar.gz: 70d4cd30ef739dfbcdc55c4b7e2645cf07feffebf5761b372e4399131a16f729f9ba64c745795263c4d6a9dc47fcbc5265cdc3b4819f97ea37d0994897524249
6
+ metadata.gz: 13f82b3b243a09531408986b1acef31556089bca5927077c9e4d490632229f77cef97f9fdd1eb4343be8dc9bbb9f55e57b3ee51f5da5651009bd4b4ac3724eb5
7
+ data.tar.gz: 276ad11bcc135f067046694da526da5078cfdc0b24137cadeb7d8c52b0ddb462b23ee7d47c97bc08611160d436240c559ff1b4d18b51ed78a0b607c0973dc913
@@ -95,6 +95,7 @@ module ELFTools
95
95
  DT_VERDEF = 0x6ffffffc # address of version definition table
96
96
  DT_VERDEFNUM = 0x6ffffffd # number of entries in {DT_VERDEF}
97
97
  DT_VERNEED = 0x6ffffffe # address of version dependency table
98
+ DT_VERSYM = 0x6ffffff0 # section address of .gnu.version
98
99
  DT_VERNEEDNUM = 0x6fffffff # number of entries in {DT_VERNEED}
99
100
  # Values between {DT_LOPROC} and {DT_HIPROC} are reserved for processor-specific semantics.
100
101
  DT_LOPROC = 0x70000000
@@ -212,6 +213,14 @@ module ELFTools
212
213
  end
213
214
  include ET
214
215
 
216
+ # Program header permission flags, records bitwise OR value in +p_flags+.
217
+ module PF
218
+ PF_X = 1
219
+ PF_W = 2
220
+ PF_R = 4
221
+ end
222
+ include PF
223
+
215
224
  # Program header types, records in +p_type+.
216
225
  module PT
217
226
  PT_NULL = 0 # null segment
@@ -233,6 +242,14 @@ module ELFTools
233
242
  end
234
243
  include PT
235
244
 
245
+ # Special indices to section. These are used when there is no valid index to section header.
246
+ # The meaning of these values is left upto the embedding header.
247
+ module SHN
248
+ SHN_UNDEF = 0 # undefined section
249
+ SHN_LORESERVE = 0xff00 # start of reserved indices
250
+ end
251
+ include SHN
252
+
236
253
  # Section header types, records in +sh_type+.
237
254
  module SHT
238
255
  SHT_NULL = 0 # null section
@@ -56,7 +56,7 @@ module ELFTools
56
56
  note = section.notes.first
57
57
  return nil if note.nil?
58
58
 
59
- note.desc.unpack('H*').first
59
+ note.desc.unpack1('H*')
60
60
  end
61
61
 
62
62
  # Get machine architecture.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ELFTools
4
4
  # Current gem version
5
- VERSION = '1.1.2'
5
+ VERSION = '1.1.3'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elftools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - david942j
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-03 00:00:00.000000000 Z
11
+ date: 2020-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
- rubygems_version: 3.0.3
164
+ rubygems_version: 3.1.2
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: ELFTools - Pure ruby library for parsing and patching ELF files