pub struct ProcessImage {
pub role: ImageRole,
pub path: PathBuf,
pub real_path: PathBuf,
pub install_name: String,
pub status: ImageLoadStatus,
pub image: Option<MachOImage>,
pub plan: ImagePlan,
pub memory: Option<GuestMemory>,
pub requested_kind: DylibKind,
pub exports: Vec<DefinedSymbol>,
pub export_by_name: HashMap<String, u64>,
pub file_bytes: Option<FileImage>,
}Expand description
One image in the process set (mapped or skipped).
Fields§
§role: ImageRoleMain vs dylib.
path: PathBufHost path attempted / opened.
real_path: PathBufCanonical (or best-effort absolute) path, computed once at insert.
Used for duplicate detection and bottle alias matching (libc++ →
libSystem) without re-running canonicalize / readlinkat on every
bind site (roadmap A4).
install_name: StringInstall name from the load command (or LC_ID_DYLIB when mapped).
status: ImageLoadStatusMap outcome.
image: Option<MachOImage>Present when status is ImageLoadStatus::Mapped.
plan: ImagePlanFull plan when mapped; ImagePlan::empty when skipped.
memory: Option<GuestMemory>Guest mapping when mapped.
requested_kind: DylibKindHow this edge was requested. Main uses DylibKind::Load as sentinel.
exports: Vec<DefinedSymbol>Defined external nlist symbols (PR2; empty in PR1).
export_by_name: HashMap<String, u64>Preferred-VA index of Self::exports for O(1) bind / chained resolve.
Built in fill_exports (same pass as the nlist scan). Includes the
dyld_stub_binder → _dyld_stub_binder alias when present.
file_bytes: Option<FileImage>Full on-disk container from the first parse (mmap preferred).
Reused for (1) segment fill without a second disk pass and (2) bind / chained fixups (arm64 thin view). Any guest benefits — not tool-specific. Taken/dropped during bind after use.
Implementations§
Source§impl ProcessImage
impl ProcessImage
Sourcepub fn preferred_base(&self) -> u64
pub fn preferred_base(&self) -> u64
Preferred base from the plan (0 if empty).
Sourcepub fn region_infos(&self) -> Vec<MappedRegionInfo>
pub fn region_infos(&self) -> Vec<MappedRegionInfo>
Region infos for dry-load (empty when skipped).