7
* Copyright (C) 2011 Oracle Corporation
7
* Copyright (C) 2011-2012 Oracle Corporation
9
9
* This file is part of VirtualBox Open Source Edition (OSE), as
10
10
* available from http://www.virtualbox.org. This file is free software;
247
247
#define MH_WEAK_DEFINES UINT32_C(0x00008000)
248
248
#define MH_BINDS_TO_WEAK UINT32_C(0x00010000)
249
249
#define MH_ALLOW_STACK_EXECUTION UINT32_C(0x00020000)
250
#define MH_VALID_FLAGS UINT32_C(0x0003ffff)
250
#define MH_ROOT_SAFE UINT32_C(0x00040000)
251
#define MH_SETUID_SAFE UINT32_C(0x00080000)
252
#define MH_NO_REEXPORTED_DYLIBS UINT32_C(0x00100000)
253
#define MH_PIE UINT32_C(0x00200000)
254
#define MH_DEAD_STRIPPABLE_DYLIB UINT32_C(0x00400000)
255
#define MH_HAS_TLV_DESCRIPTORS UINT32_C(0x00800000)
256
#define MH_NO_HEAP_EXECUTION UINT32_C(0x01000000)
257
#define MH_VALID_FLAGS UINT32_C(0x02ffffff)
253
260
typedef struct load_command
281
288
#define LC_SUB_LIBRARY UINT32_C(0x15)
282
289
#define LC_TWOLEVEL_HINTS UINT32_C(0x16)
283
290
#define LC_PREBIND_CKSUM UINT32_C(0x17)
284
#define LC_LOAD_WEAK_DYLIB ( UINT32_C(0x18) | LC_REQ_DYLD)
291
#define LC_LOAD_WEAK_DYLIB (UINT32_C(0x18) | LC_REQ_DYLD)
285
292
#define LC_SEGMENT_64 UINT32_C(0x19)
286
293
#define LC_ROUTINES_64 UINT32_C(0x1a)
287
294
#define LC_UUID UINT32_C(0x1b)
295
#define LC_RPATH (UINT32_C(0x1c) | LC_REQ_DYLD)
296
#define LC_CODE_SIGNATURE UINT32_C(0x1d)
297
#define LC_SEGMENT_SPLIT_INFO UINT32_C(0x1e)
298
#define LC_REEXPORT_DYLIB (UINT32_C(0x1f) | LC_REQ_DYLD)
299
#define LC_LAZY_LOAD_DYLIB UINT32_C(0x20)
300
#define LC_ENCRYPTION_INFO UINT32_C(0x21)
301
#define LC_DYLD_INFO UINT32_C(0x22)
302
#define LC_DYLD_INFO_ONLY (UINT32_C(0x22) | LC_REQ_DYLD)
303
#define LC_LOAD_UPWARD_DYLIB (UINT32_C(0x23) | LC_REQ_DYLD)
304
#define LC_VERSION_MIN_MACOSX UINT32_C(0x24)
305
#define LC_VERSION_MIN_IPHONEOS UINT32_C(0x25)
306
#define LC_FUNCTION_STARTS UINT32_C(0x26)
307
#define LC_DYLD_ENVIRONMENT UINT32_C(0x27)
308
#define LC_MAIN (UINT32_C(0x28) | LC_REQ_DYLD)
309
#define LC_DATA_IN_CODE UINT32_C(0x29)
310
#define LC_SOURCE_VERSION UINT32_C(0x2a)
311
#define LC_DYLIB_CODE_SIGN_DRS UINT32_C(0x2b)
290
314
typedef struct lc_str