mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
more paths
This commit is contained in:
parent
3f87c1b60c
commit
baa0dcc359
3 changed files with 110 additions and 66 deletions
|
@ -188,15 +188,11 @@ pub(crate) fn preprocess_windows(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub(crate) fn surgery_pe(
|
||||
executable_path: &Path,
|
||||
metadata_path: &Path,
|
||||
app_bytes: &[u8],
|
||||
_verbose: bool,
|
||||
) {
|
||||
pub(crate) fn surgery_pe(executable_path: &Path, metadata_path: &Path, app_path: &Path) {
|
||||
let md = PeMetadata::read_from_file(metadata_path);
|
||||
let app_bytes = open_mmap(app_path);
|
||||
|
||||
let app_obj_sections = AppSections::from_data(app_bytes);
|
||||
let app_obj_sections = AppSections::from_data(&app_bytes);
|
||||
let mut symbols = app_obj_sections.symbols;
|
||||
|
||||
let image_base: u64 = md.image_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue