pub trait ElfSectionHeader {
    // Required methods
    fn sh_name(&self) -> Elf64Word;
    fn sh_addr(&self) -> Elf64Addr;
    fn sh_offset(&self) -> Elf64Off;
    fn sh_size(&self) -> Elf64Xword;
    fn sh_flags(&self) -> Elf64Xword;
    fn sh_type(&self) -> Elf64Word;

    // Provided methods
    fn is_writable(&self) -> bool { ... }
    fn file_range(&self) -> Option<Range<usize>> { ... }
    fn vm_range(&self) -> Range<Elf64Addr> { ... }
}
Expand description

ELF section header.

Required Methods§

source

fn sh_name(&self) -> Elf64Word

Returns the section name offset.

source

fn sh_addr(&self) -> Elf64Addr

Returns the section virtual address.

source

fn sh_offset(&self) -> Elf64Off

Returns the section file offset.

source

fn sh_size(&self) -> Elf64Xword

Returns the section size.

source

fn sh_flags(&self) -> Elf64Xword

Returns the section flags.

source

fn sh_type(&self) -> Elf64Word

Returns the section type.

Provided Methods§

source

fn is_writable(&self) -> bool

Returns whether the section is writable.

source

fn file_range(&self) -> Option<Range<usize>>

Returns the byte range the section spans in the file.

source

fn vm_range(&self) -> Range<Elf64Addr>

Returns the virtual address range.

Implementations on Foreign Types§

source§

impl ElfSectionHeader for SectionHeader

Implementors§