elftools 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elftools/constants.rb +17 -0
- data/lib/elftools/elf_file.rb +1 -1
- data/lib/elftools/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef6779875e27077da47848a95cef46ee26be52e56e763c0850dbd2e22e7e100b
|
4
|
+
data.tar.gz: a9b422a4fb0a11a08036e222475110f9a9f6f788ce8c775d6e67d0e6f1b5a9c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13f82b3b243a09531408986b1acef31556089bca5927077c9e4d490632229f77cef97f9fdd1eb4343be8dc9bbb9f55e57b3ee51f5da5651009bd4b4ac3724eb5
|
7
|
+
data.tar.gz: 276ad11bcc135f067046694da526da5078cfdc0b24137cadeb7d8c52b0ddb462b23ee7d47c97bc08611160d436240c559ff1b4d18b51ed78a0b607c0973dc913
|
data/lib/elftools/constants.rb
CHANGED
@@ -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
|
data/lib/elftools/elf_file.rb
CHANGED
data/lib/elftools/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|