Constants

object Constants

Properties

Link copied to clipboard
const val MH_ALLMODSBOUND: Int

indicates that this binary binds to all two-level namespace modules of its dependent libraries. only used when MH_PREBINDABLE and MH_TWOLEVEL are both set

Link copied to clipboard

When this bit is set, all stacks in the task will be given stack execution privilege. Only used in MH_EXECUTE filetypes

Link copied to clipboard

The code was linked for use in an application extension

Link copied to clipboard
const val MH_BINDATLOAD: Int

the object file's undefined references are bound by the dynamic linker when loaded

Link copied to clipboard

the final linked image uses weak symbols

Link copied to clipboard
const val MH_CANONICAL: Int

the binary has been canonicalized via the unprebind operation

Link copied to clipboard

Only for use on dylibs. When linking against a dylib that has this bit set, the static linker will automatically not create a LC_LOAD_DYLIB load command to the dylib if no symbols are being referenced from the dylib

Link copied to clipboard
const val MH_DYLDLINK: Int

the object file is input for the dynamic linker and can't be staticly link edited again

Link copied to clipboard

Only for use on dylibs. When this bit is set, the dylib is part of the dyld shared cache, rather than loose in the filesystem

Link copied to clipboard
const val MH_FORCE_FLAT: Int

the executable is forcing all images to use flat name space bindings

Link copied to clipboard

Contains a section of type S_THREAD_LOCAL_VARIABLES

Link copied to clipboard
const val MH_INCRLINK: Int

the object file is the output of an incremental link against a base file and can't be link edited again

Link copied to clipboard
const val MH_LAZY_INIT: Int

the shared library init routine is to be run lazily via catching memory faults to its writeable segments (obsolete)

Link copied to clipboard

The external symbols listed in the nlist symbol table do not include all the symbols listed in the dyld info

Link copied to clipboard

When this bit is set, the OS will run the main executable with a non-executable heap even on platforms (e.g. i386) that don't require it. Only used in MH_EXECUTE filetypes

Link copied to clipboard

When this bit is set on a dylib, the static linker does not need to examine dependent dylibs to see if any are re-exported

Link copied to clipboard

do not have dyld notify the prebinding agent about this executable

Link copied to clipboard
const val MH_NOMULTIDEFS: Int

this umbrella guarantees no multiple defintions of symbols in its sub-images so the two-level namespace hints can always be used

Link copied to clipboard
const val MH_NOUNDEFS: Int

the object file has no undefined references

Link copied to clipboard
const val MH_PIE: Int

When this bit is set, the OS will load the main executable at a random address. Only used in MH_EXECUTE filetypes

Link copied to clipboard
const val MH_PREBINDABLE: Int

the binary is not prebound but can have its prebinding redone. only used when MH_PREBOUND is not set

Link copied to clipboard
const val MH_PREBOUND: Int

the file has its dynamic undefined references prebound

Link copied to clipboard
const val MH_ROOT_SAFE: Int

When this bit is set, the binary declares it is safe for use in processes with uid zero

Link copied to clipboard
const val MH_SETUID_SAFE: Int

When this bit is set, the binary declares it is safe for use in processes when issetugid() is true

Link copied to clipboard
const val MH_SIM_SUPPORT: Int

Allow LC_MIN_VERSION_MACOS and LC_BUILD_VERSION load commands with the platforms macOS, iOSMac, iOSSimulator, tvOSSimulator and watchOSSimulator

Link copied to clipboard
const val MH_SPLIT_SEGS: Int

the file has its read-only and read-write segments split

Link copied to clipboard

safe to divide up the sections into sub-sections via symbols for dead code stripping

Link copied to clipboard
const val MH_TWOLEVEL: Int

the image is using two-level name space bindings

Link copied to clipboard
const val MH_WEAK_DEFINES: Int

the final linked image contains external weak symbols