pub struct Config {Show 15 fields
pub imports: bool,
pub exports: bool,
pub resources: bool,
pub relocations: bool,
pub load_configuration: bool,
pub tls: bool,
pub overlay: bool,
pub debug: bool,
pub dos_stub: bool,
pub rsrc_section: String,
pub idata_section: String,
pub tls_section: String,
pub reloc_section: String,
pub export_section: String,
pub debug_section: String,
}
Expand description
Structure used to configure the crate::pe::Binary::write_with_config
operation
The default value of these attributes is set to false
if the
operation modifies the binary layout even though nothing changed.
For instance, building the import table always requires relocating the
table to another place. Thus, the default value is false and must
be explicitly set to true.
Fields§
§imports: bool
Whether the builder should reconstruct the imports table. This option should be turned on if you modify imports.
Please check LIEF website for more details
exports: bool
Whether the builder should reconstruct the export table This option should be turned on if you modify exports.
Please check LIEF website for more details
resources: bool
Whether the builder should regenerate the resources tree
relocations: bool
Whether the builder should regenerate relocations
load_configuration: bool
Whether the builder should regenerate the load config
tls: bool
Whether the builder should regenerate the TLS info
overlay: bool
Whether the builder should write back any overlay data
debug: bool
Whether the builder should regenerate debug entries
dos_stub: bool
Whether the builder should write back dos stub (including the rich header)
rsrc_section: String
If the resources tree needs to be relocated, this defines the name of the new section that contains the relocated tree.
idata_section: String
Section that holds the relocated import table (IAT/ILT)
tls_section: String
Section that holds the relocated TLS info
reloc_section: String
Section that holds the relocated relocations
export_section: String
Section that holds the export table
debug_section: String
Section that holds the debug entries