diff --git a/crates/linker/dynhost_benchmarks_windows.exe b/crates/linker/dynhost_benchmarks_windows.exe index 5c3a208653..4f8c9e8ed5 100755 Binary files a/crates/linker/dynhost_benchmarks_windows.exe and b/crates/linker/dynhost_benchmarks_windows.exe differ diff --git a/crates/linker/src/pe.rs b/crates/linker/src/pe.rs index 9eb54120b5..aae3c905e2 100644 --- a/crates/linker/src/pe.rs +++ b/crates/linker/src/pe.rs @@ -189,6 +189,9 @@ pub(crate) fn preprocess_windows( _time: bool, ) -> object::read::Result<()> { let data = open_mmap(host_exe_filename); + + std::fs::copy(host_exe_filename, "/tmp/roc/dynhost.exe").unwrap(); + let new_sections = [*b".text\0\0\0", *b".rdata\0\0"]; let mut preprocessed = Preprocessor::preprocess( preprocessed_filename,