elf_utilities/
lib.rs

1pub mod dynamic;
2pub mod file;
3pub mod header;
4pub mod parser;
5pub mod relocation;
6pub mod section;
7pub mod segment;
8pub mod symbol;
9
10#[allow(unused)]
11/* Type for a 16-bit quantity.  */
12/// Type for a 16-bit quantity (in ELF32)
13pub type Elf32Half = u16;
14/// Type for a 16-bit quantity (in ELF64)
15pub type Elf64Half = u16;
16
17/* Types for signed and unsigned 32-bit quantities.  */
18/// Type for an unsigned 32-bit quantity (in ELF32)
19pub type Elf32Word = u32;
20/// Type for an unsigned 32-bit quantity (in ELF64)
21pub type Elf64Word = u32;
22/// Type for a signed 32-bit quantity (in ELF32)
23pub type Elf32Sword = i32;
24/// Type for a signed 32-bit quantity (in ELF64)
25pub type Elf64Sword = i32;
26
27/* Types for signed and unsigned 64-bit quantities.  */
28/// Type for an unsigned 64-bit quantity (in ELF32)
29pub type Elf32Xword = u64;
30/// Type for an unsigned 64-bit quantity (in ELF64)
31pub type Elf64Xword = u64;
32/// Type for a signed 64-bit quantity (in ELF32)
33pub type Elf32Sxword = i64;
34/// Type for a signed 64-bit quantity (in ELF64)
35pub type Elf64Sxword = i64;
36
37/* Type of addresses.  */
38/// Type of an address (in ELF32)
39pub type Elf32Addr = u32;
40/// Type of an address (in ELF64)
41pub type Elf64Addr = u64;
42
43/* Type of file offsets.  */
44/// Type of a file offsets (in ELF32)
45pub type Elf32Off = u32;
46/// Type of a file offsets (in ELF64)
47pub type Elf64Off = u64;
48
49/* Type for section indices, which are 16-bit quantities.  */
50/// Type of a section indices (in ELF32)
51pub type Elf32Section = u16;
52/// Type of a file offsets (in ELF64)
53pub type Elf64Section = u16;
54
55/* Type for version symbol information.  */
56/// Type of a version symbol information (in ELF32)
57pub type Elf32Versym = Elf32Half;
58/// Type of a version symbol information (in ELF64)
59pub type Elf64Versym = Elf64Half;