Expand description

Support for reading Mach-O files.

Defines traits to abstract over the difference between 32-bit and 64-bit Mach-O files, and implements read functionality in terms of these traits.

Also provides MachOFile and related types which implement the Object trait.

Re-exports

pub use macho::FatArch32;
pub use macho::FatArch64;
pub use macho::FatHeader;

Structs

A parsed representation of the dyld shared cache.

One image (dylib) from inside the dyld shared cache.

An iterator over all the images (dylibs) in the dyld shared cache.

The data for a LoadCommand.

An iterator over the load commands of a MachHeader.

A COMDAT section group of a MachOFile.

An iterator over the COMDAT section groups of a MachOFile.

An iterator over the sections in a COMDAT section group of a MachOFile.

A partially parsed Mach-O file.

An iterator over the relocations in a MachOSection.

A section of a MachOFile.

An iterator over the sections of a MachOFile.

A segment of a MachOFile.

An iterator over the segments of a MachOFile.

A symbol of a MachOFile.

An iterator over the symbols of a MachOFile.

A symbol table of a MachOFile.

A table of symbol entries in a Mach-O file.

Enums

A LoadCommand that has been interpreted according to its cmd field.

Traits

A trait for generic access to FatArch32 and FatArch64.

A trait for generic access to MachHeader32 and MachHeader64.

A trait for generic access to Nlist32 and Nlist64.

A trait for generic access to Section32 and Section64.

A trait for generic access to SegmentCommand32 and SegmentCommand64.

Type Definitions

A COMDAT section group of a MachOFile32.

A COMDAT section group of a MachOFile64.

An iterator over the COMDAT section groups of a MachOFile64.

An iterator over the COMDAT section groups of a MachOFile64.

An iterator over the sections in a COMDAT section group of a MachOFile32.

An iterator over the sections in a COMDAT section group of a MachOFile64.

A 32-bit Mach-O object file.

A 64-bit Mach-O object file.

An iterator over the relocations in a MachOSection32.

An iterator over the relocations in a MachOSection64.

A section of a MachOFile32.

A section of a MachOFile64.

An iterator over the sections of a MachOFile32.

An iterator over the sections of a MachOFile64.

A segment of a MachOFile32.

A segment of a MachOFile64.

An iterator over the segments of a MachOFile32.

An iterator over the segments of a MachOFile64.

A symbol of a MachOFile32.

A symbol of a MachOFile64.

An iterator over the symbols of a MachOFile32.

An iterator over the symbols of a MachOFile64.

An iterator over the symbols of a MachOFile32.

An iterator over the symbols of a MachOFile64.