Function resymgen::generate_symbol_tables
source · pub fn generate_symbol_tables<'v, I, F, V, O>(
input_file: I,
output_formats: Option<F>,
output_versions: Option<V>,
sort_output: bool,
output_base: O
) -> Result<(), Box<dyn Error>>
Expand description
Generates symbol tables from a given input_file
for multiple different output_formats
and
output_versions
.
Output is written to filepaths based on output_base
. Both output_formats
and
output_versions
default to all formats/versions if None
. If sort_output
is true, the
function and data sections of the output symbol tables will each be sorted by symbol address.
Examples
ⓘ
generate_symbol_tables(
"/path/to/symbols.yml",
Some([OutFormat::Ghidra]),
Some("v1"),
false,
"/path/to/out/symbols",
)
.expect("failed to generate symbol tables");