This commit is contained in:
Folkert 2022-09-24 16:09:55 +02:00
parent c220f0c296
commit 3f87c1b60c
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -2,7 +2,6 @@ use std::{
io::{BufReader, BufWriter},
ops::Range,
path::Path,
time::Instant,
};
use bincode::{deserialize_from, serialize_into};
@ -92,11 +91,6 @@ pub(crate) fn preprocess_windows(
) -> object::read::Result<()> {
use object::ObjectSection;
let total_start = Instant::now();
let exec_parsing_start = total_start;
let _exec_parsing_duration = exec_parsing_start.elapsed();
let data = open_mmap(host_exe_filename);
let new_sections = [*b".text\0\0\0", *b".rdata\0\0"];
let mut dynhost = Preprocessor::preprocess(out_filename, &data, &new_sections);