Struct lief::elf::builder::Config

pub struct Config {
Show 20 fields pub dt_hash: bool, pub dyn_str: bool, pub dynamic_section: bool, pub fini_array: bool, pub gnu_hash: bool, pub init_array: bool, pub interpreter: bool, pub jmprel: bool, pub notes: bool, pub preinit_array: bool, pub relr: bool, pub android_rela: bool, pub rela: bool, pub static_symtab: bool, pub sym_verdef: bool, pub sym_verneed: bool, pub sym_versym: bool, pub symtab: bool, pub coredump_notes: bool, pub force_relocate: bool,
}
Expand description

Structure used to configure the crate::elf::Binary::write_with_config operation

Fields§

§dt_hash: bool

Rebuild DT_HASH

§dyn_str: bool

Rebuild DT_STRTAB

§dynamic_section: bool

Rebuild PT_DYNAMIC segment

§fini_array: bool

Rebuild DT_FINI_ARRAY

§gnu_hash: bool

Rebuild DT_GNU_HASH

§init_array: bool

Rebuild DT_INIT_ARRAY

§interpreter: bool

Rebuild PT_INTERPRETER

§jmprel: bool

Rebuild DT_JMPREL

§notes: bool

Rebuild notes sections

§preinit_array: bool

Rebuild DT_PREINIT_ARRAY

§relr: bool

Rebuild DT_RELR

§android_rela: bool

Rebuild DT_ANDROID_REL[A]

§rela: bool

Rebuild DT_REL[A]

§static_symtab: bool

Rebuild .symtab

§sym_verdef: bool

Rebuild DT_VERDEF

§sym_verneed: bool

Rebuild DT_VERNEED

§sym_versym: bool

Rebuild DT_VERSYM

§symtab: bool

Rebuild DT_SYMTAB

§coredump_notes: bool

Rebuild the Coredump notes

§force_relocate: bool

Force to relocating all the ELF structures that are supported by LIEF (mostly for testing)

Trait Implementations§

§

impl Debug for Config

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for Config

§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.