Skip to content

Commit 3328925

Browse files
authored
macho: add MH_GPU* filetype (#513)
1 parent c029a2c commit 3328925

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mach/header.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ pub const MH_DSYM: u32 = 0xa;
141141
pub const MH_KEXT_BUNDLE: u32 = 0xb;
142142
/// set of mach-o's
143143
pub const MH_FILESET: u32 = 0xc;
144+
/// gpu program
145+
pub const MH_GPU_EXECUTE: u32 = 0xd;
146+
/// gpu support functions
147+
pub const MH_GPU_DYLIB: u32 = 0xe;
144148

145149
pub fn filetype_to_str(filetype: u32) -> &'static str {
146150
match filetype {
@@ -156,6 +160,8 @@ pub fn filetype_to_str(filetype: u32) -> &'static str {
156160
MH_DSYM => "DSYM",
157161
MH_KEXT_BUNDLE => "KEXT_BUNDLE",
158162
MH_FILESET => "FILESET",
163+
MH_GPU_EXECUTE => "GPU_EXECUTE",
164+
MH_GPU_DYLIB => "GPU_DYLIB",
159165
_ => "UNKNOWN FILETYPE",
160166
}
161167
}

0 commit comments

Comments
 (0)