Struct elfkit::elf::Elf[][src]

pub struct Elf {
    pub header: Header,
    pub segments: Vec<SegmentHeader>,
    pub sections: Vec<Section>,
}

Fields

Methods

impl Elf
[src]

write out everything to linked sections, such as string tables after calling this function, size() is reliable for all sections

gnu ld compatibility. this is very inefficent, but not doing this might break some GNU tools that rely on specific gnu-ld behaviour

  • reorder symbols to have GLOBAL last
  • remove original SECTION symbols and add offset to reloc addend instead
  • insert new symbol sections on the top

reorder to minimize segmentation will only reorder sections that come after the last locked section

Trait Implementations

impl Default for Elf
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Elf

impl Sync for Elf