Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/mach/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ pub const MH_DSYM: u32 = 0xa;
pub const MH_KEXT_BUNDLE: u32 = 0xb;
/// set of mach-o's
pub const MH_FILESET: u32 = 0xc;
/// gpu program
pub const MH_GPU_EXECUTE: u32 = 0xd;
/// gpu support functions
pub const MH_GPU_DYLIB: u32 = 0xe;

pub fn filetype_to_str(filetype: u32) -> &'static str {
match filetype {
Expand All @@ -156,6 +160,8 @@ pub fn filetype_to_str(filetype: u32) -> &'static str {
MH_DSYM => "DSYM",
MH_KEXT_BUNDLE => "KEXT_BUNDLE",
MH_FILESET => "FILESET",
MH_GPU_EXECUTE => "GPU_EXECUTE",
MH_GPU_DYLIB => "GPU_DYLIB",
_ => "UNKNOWN FILETYPE",
}
}
Expand Down