elf_utilities/
section.rs

1//! ELF section and section header utilities.
2
3#[allow(unused_imports)]
4pub use base::*;
5pub use elf32::*;
6pub use elf64::*;
7pub use section_flag::*;
8pub use section_type::*;
9
10mod base;
11mod elf32;
12mod elf64;
13mod section_flag;
14mod section_type;
15
16/// Undefined section
17pub const SHN_UNDEF: u16 = 0;
18/// Start of processor-specific
19pub const SHN_LOPROC: u16 = 0xff00;
20/// End of processor-specific
21pub const SHN_HIPROC: u16 = 0xff1f;
22/// Start of OS-specific
23pub const SHN_LOOS: u16 = 0xff20;
24/// End of OS-specific
25pub const SHN_HIOS: u16 = 0xff3f;
26/// Associated symbol is absolute
27pub const SHN_ABS: u16 = 0xfff1;
28/// Associated symbol is common
29pub const SHN_COMMON: u16 = 0xfff2;
30/// Index is in extra table
31pub const SHN_XINDEX: u16 = 0xffff;