This commit is contained in:
Folkert 2022-09-28 20:39:16 +02:00
parent 4780144e38
commit 1254c9f8db
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 2 additions and 5 deletions

View file

@ -19,7 +19,7 @@ use std::time::{Duration, Instant};
use crate::metadata::{self, Metadata, VirtualOffset}; use crate::metadata::{self, Metadata, VirtualOffset};
use crate::{ use crate::{
align_by_constraint, align_to_offset_by_constraint, dbg_hex, load_struct_inplace, align_by_constraint, align_to_offset_by_constraint, load_struct_inplace,
load_struct_inplace_mut, load_structs_inplace_mut, open_mmap, open_mmap_mut, load_struct_inplace_mut, load_structs_inplace_mut, open_mmap, open_mmap_mut,
}; };

View file

@ -20,8 +20,7 @@ use roc_collections::{MutMap, VecMap};
use roc_error_macros::internal_error; use roc_error_macros::internal_error;
use crate::{ use crate::{
dbg_hex, generate_dylib::APP_DLL, load_struct_inplace, load_struct_inplace_mut, open_mmap, generate_dylib::APP_DLL, load_struct_inplace, load_struct_inplace_mut, open_mmap, open_mmap_mut,
open_mmap_mut,
}; };
/// The metadata stores information about/from the host .exe because /// The metadata stores information about/from the host .exe because
@ -935,8 +934,6 @@ impl AppSections {
for symbol in file.symbols() { for symbol in file.symbols() {
use object::ObjectSymbol; use object::ObjectSymbol;
let name = String::from_utf8_lossy(symbol.name_bytes().unwrap_or_default());
if symbol.name_bytes().unwrap_or_default().starts_with(b"roc") { if symbol.name_bytes().unwrap_or_default().starts_with(b"roc") {
if let object::SymbolSection::Section(index) = symbol.section() { if let object::SymbolSection::Section(index) = symbol.section() {
let (kind, offset_in_host_section) = section_starts[&index]; let (kind, offset_in_host_section) = section_starts[&index];