Struct object_rewrite::ElfOptions
source · #[non_exhaustive]pub struct ElfOptions {
pub add_dynamic_debug: bool,
pub delete_runpath: bool,
pub set_runpath: Option<Vec<u8>>,
pub add_runpath: Vec<Vec<u8>>,
pub use_runpath: bool,
pub use_rpath: bool,
pub delete_needed: HashSet<Vec<u8>>,
pub replace_needed: HashMap<Vec<u8>, Vec<u8>>,
pub add_needed: Vec<Vec<u8>>,
pub set_soname: Option<Vec<u8>>,
pub set_interpreter: Option<Vec<u8>>,
}
Expand description
Options for modifying an ELF file.
This struct contains options for modifying an ELF file. It is
contained in the Options
struct.
Options are listed in the order they are processed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.add_dynamic_debug: bool
Add a DT_DEBUG
entry to the dynamic section.
delete_runpath: bool
Delete any DT_RUNPATH
and DT_RPATH
entries in the dynamic section.
set_runpath: Option<Vec<u8>>
Set the path for any DT_RUNPATH
or DT_RPATH
entry in the dynamic section.
add_runpath: Vec<Vec<u8>>
Add additional paths to any DT_RUNPATH
or DT_RPATH
entry in the dynamic section.
use_runpath: bool
Change any DT_RPATH
entry in the dynamic section to DT_RUNPATH
.
use_rpath: bool
Change any DT_RUNPATH
entry in the dynamic section to DT_RPATH
.
delete_needed: HashSet<Vec<u8>>
Delete DT_NEEDED
entries from the dynamic section.
replace_needed: HashMap<Vec<u8>, Vec<u8>>
Replace DT_NEEDED
entries in the dynamic section.
add_needed: Vec<Vec<u8>>
Add DT_NEEDED
entries to the start of the dynamic section.
set_soname: Option<Vec<u8>>
Set the DT_SONAME
entry in the dynamic section.
set_interpreter: Option<Vec<u8>>
Set the interpreter path in the PT_INTERP
segment.