hexspell 1.0.0

Dependency-free Rust library for parsing and patching PE, ELF, and Mach-O executables with a 1:1 on-disk API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! ELF section linkage helpers.

/// A section identified by role, index, `sh_link`, and `sh_addr`.
pub struct LinkedSection {
    /// Conventional role such as `.plt`, `.got`, or `.got.plt`.
    pub role: String,
    /// Section index.
    pub section_index: usize,
    /// Linked section index from `sh_link`.
    pub link: u32,
    /// Virtual address from `sh_addr`.
    pub addr: u64,
}