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
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.
- Information about a subcache.
- 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 itscmd
field.
Traits
- A trait for generic access to
FatArch32
andFatArch64
. - A trait for generic access to
MachHeader32
andMachHeader64
. - A trait for generic access to
Nlist32
andNlist64
. - A trait for generic access to
Section32
andSection64
. - A trait for generic access to
SegmentCommand32
andSegmentCommand64
.
Functions
- Find the file offset of the image by looking up its address in the mappings.
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
.