1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#[allow(unused)]
pub mod header;

/* Type for a 16-bit quantity.  */
pub type Elf32Half = u16;
pub type Elf64Half = u16;

/* Types for signed and unsigned 32-bit quantities.  */
pub type Elf32Word = u32;
pub type Elf64Word = u32;
pub type Elf32Sword = i32;
pub type Elf64Sword = i32;

/* Types for signed and unsigned 64-bit quantities.  */
pub type Elf32Xword = u64;
pub type Elf64Xword = u64;
pub type Elf32Sxword = i64;
pub type Elf64Sxword = i64;

/* Type of addresses.  */
pub type Elf32Addr = u32;
pub type Elf64Addr = u64;

/* Type of file offsets.  */
pub type Elf32Off = u32;
pub type Elf64Off = u64;

/* Type for section indices, which are 16-bit quantities.  */
pub type Elf32Section = u16;
pub type Elf64Section = u16;

/* Type for version symbol information.  */
pub type Elf32Versym = Elf32Half;
pub type Elf64Versym = Elf64Half;