We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c029a2c commit 3328925Copy full SHA for 3328925
src/mach/header.rs
@@ -141,6 +141,10 @@ pub const MH_DSYM: u32 = 0xa;
141
pub const MH_KEXT_BUNDLE: u32 = 0xb;
142
/// set of mach-o's
143
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;
148
149
pub fn filetype_to_str(filetype: u32) -> &'static str {
150
match filetype {
@@ -156,6 +160,8 @@ pub fn filetype_to_str(filetype: u32) -> &'static str {
156
160
MH_DSYM => "DSYM",
157
161
MH_KEXT_BUNDLE => "KEXT_BUNDLE",
158
162
MH_FILESET => "FILESET",
163
+ MH_GPU_EXECUTE => "GPU_EXECUTE",
164
+ MH_GPU_DYLIB => "GPU_DYLIB",
159
165
_ => "UNKNOWN FILETYPE",
166
}
167
0 commit comments