Versions in this module Expand all Collapse all v1 v1.1.193 Mar 14, 2024 Changes in this version + const BIND_IMMEDIATE_MASK + const BIND_OPCODE_ADD_ADDR_ULEB + const BIND_OPCODE_DONE + const BIND_OPCODE_DO_BIND + const BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED + const BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB + const BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB + const BIND_OPCODE_MASK + const BIND_OPCODE_SET_ADDEND_SLEB + const BIND_OPCODE_SET_DYLIB_ORDINAL_IMM + const BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB + const BIND_OPCODE_SET_DYLIB_SPECIAL_IMM + const BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB + const BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM + const BIND_OPCODE_SET_TYPE_IMM + const BIND_OPCODE_THREADED + const BIND_SPECIAL_DYLIB_FLAT_LOOKUP + const BIND_SPECIAL_DYLIB_MAIN_EXECUTABLE + const BIND_SPECIAL_DYLIB_SELF + const BIND_SPECIAL_DYLIB_WEAK_LOOKUP + const BIND_SUBOPCODE_THREADED_APPLY + const BIND_SUBOPCODE_THREADED_SET_BIND_ORDINAL_TABLE_SIZE_ULEB + const BIND_SYMBOL_FLAGS_NON_WEAK_DEFINITION + const BIND_SYMBOL_FLAGS_WEAK_IMPORT + const BIND_TYPE_POINTER + const BIND_TYPE_TEXT_ABSOLUTE32 + const BIND_TYPE_TEXT_PCREL32 + const BIND_TYPE_THREADED_BIND + const BIND_TYPE_THREADED_REBASE + const CpuSubtypeAny + const CpuSubtypeArm64PtrAuthMask + const CpuSubtypeArm64eKernelAbiMask + const CpuSubtypeArm64ePtrAuthMask + const CpuSubtypeArm64eVersionedAbiMask + const CpuSubtypeFeatureMask + const CpuSubtypeLib64 + const CpuSubtypeMask + const DYLIB_USE_MARKER + const DYNAMIC_LOOKUP_ORDINAL + const EXECUTABLE_ORDINAL + const FileHeaderSize32 + const FileHeaderSize64 + const INDIRECT_SYMBOL_ABS + const INDIRECT_SYMBOL_LOCAL + const MAX_LIBRARY_ORDINAL + const MAX_SECT + const NO_SECT + const REBASE_IMMEDIATE_MASK + const REBASE_OPCODE_ADD_ADDR_IMM_SCALED + const REBASE_OPCODE_ADD_ADDR_ULEB + const REBASE_OPCODE_DONE + const REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB + const REBASE_OPCODE_DO_REBASE_IMM_TIMES + const REBASE_OPCODE_DO_REBASE_ULEB_TIMES + const REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_ULEB + const REBASE_OPCODE_MASK + const REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB + const REBASE_OPCODE_SET_TYPE_IMM + const REBASE_TYPE_POINTER + const REBASE_TYPE_TEXT_ABSOLUTE32 + const REBASE_TYPE_TEXT_PCREL32 + const SELF_LIBRARY_ORDINAL + func ExtractBits(x uint64, start, nbits int32) uint64 + func IsASCII(s string) bool + func MaskLSB64(x uint64, nbits uint8) uint64 + func PutAtMost16Bytes(b []byte, n string) + func RoundUp(x, align uint64) uint64 + func StringName(i uint32, names []IntName, goSyntax bool) string + func StringName64(i uint64, names []Int64Name, goSyntax bool) string + type Bind struct + Addend int64 + Dylib string + Flags uint8 + Kind BindKind + Name string + Offset uint64 + Section string + Segment string + Start uint64 + Type uint8 + Value uint64 + func (b Bind) String() string + type BindKind uint8 + const BIND_KIND + const LAZY_KIND + const WEAK_KIND + func (k BindKind) String() string + type Binds []Bind + func (bs Binds) Search(name string) (*Bind, error) + type BuildVersionCmd struct + Len uint32 + Minos Version + NumTools uint32 + Platform Platform + Sdk Version + type BuildVersionTool struct + Tool Tool + Version Version + func (b *BuildVersionTool) MarshalJSON() ([]byte, error) + type CPU uint32 + const CPUAmd64 + const CPUArm + const CPUArm64 + const CPUArm6432 + const CPUHppa + const CPUI386 + const CPUI860 + const CPUMC680x0 + const CPUMc88000 + const CPUMc98000 + const CPUMips + const CPUPpc + const CPUPpc64 + const CPUSparc + const CPUVax + const CPUX86 + func (i CPU) GoString() string + func (i CPU) String() string + type CPUSubtype uint32 + const CPUSubtypeArm6432All + const CPUSubtypeArm6432V8 + const CPUSubtypeArm64All + const CPUSubtypeArm64E + const CPUSubtypeArm64V8 + const CPUSubtypeArmAll + const CPUSubtypeArmV4T + const CPUSubtypeArmV5Tej + const CPUSubtypeArmV6 + const CPUSubtypeArmV6M + const CPUSubtypeArmV7 + const CPUSubtypeArmV7Em + const CPUSubtypeArmV7F + const CPUSubtypeArmV7K + const CPUSubtypeArmV7M + const CPUSubtypeArmV7S + const CPUSubtypeArmV8 + const CPUSubtypeArmV8M + const CPUSubtypeArmXscale + const CPUSubtypeHppa7100 + const CPUSubtypeHppa7100LC + const CPUSubtypeHppaAll + const CPUSubtypeI386386 + const CPUSubtypeI386486 + const CPUSubtypeI386486SX + const CPUSubtypeI386586 + const CPUSubtypeI386All + const CPUSubtypeI386Celeron + const CPUSubtypeI386CeleronMobile + const CPUSubtypeI386Itanium + const CPUSubtypeI386Itanium2 + const CPUSubtypeI386Pent + const CPUSubtypeI386PentIIM3 + const CPUSubtypeI386PentIIM5 + const CPUSubtypeI386PentPro + const CPUSubtypeI386Pentium3 + const CPUSubtypeI386Pentium3M + const CPUSubtypeI386Pentium3Xeon + const CPUSubtypeI386Pentium4 + const CPUSubtypeI386Pentium4M + const CPUSubtypeI386PentiumM + const CPUSubtypeI386Xeon + const CPUSubtypeI386XeonMP + const CPUSubtypeI860All + const CPUSubtypeI860_860 + const CPUSubtypeMC68030 + const CPUSubtypeMC68030Only + const CPUSubtypeMC68040 + const CPUSubtypeMC680x0All + const CPUSubtypeMc88000All + const CPUSubtypeMc88100 + const CPUSubtypeMc88110 + const CPUSubtypeMc98000All + const CPUSubtypeMc98601 + const CPUSubtypeMipsAll + const CPUSubtypeMipsR2000 + const CPUSubtypeMipsR2000a + const CPUSubtypeMipsR2300 + const CPUSubtypeMipsR2600 + const CPUSubtypeMipsR2800 + const CPUSubtypeMipsR3000 + const CPUSubtypeMipsR3000a + const CPUSubtypePowerPC601 + const CPUSubtypePowerPC602 + const CPUSubtypePowerPC603 + const CPUSubtypePowerPC603e + const CPUSubtypePowerPC603ev + const CPUSubtypePowerPC604 + const CPUSubtypePowerPC604e + const CPUSubtypePowerPC620 + const CPUSubtypePowerPC7400 + const CPUSubtypePowerPC7450 + const CPUSubtypePowerPC750 + const CPUSubtypePowerPC970 + const CPUSubtypePowerPCAll + const CPUSubtypeSparcAll + const CPUSubtypeUVaxI + const CPUSubtypeUVaxII + const CPUSubtypeUVaxIII + const CPUSubtypeVax730 + const CPUSubtypeVax750 + const CPUSubtypeVax780 + const CPUSubtypeVax785 + const CPUSubtypeVax8200 + const CPUSubtypeVax8500 + const CPUSubtypeVax8600 + const CPUSubtypeVax8650 + const CPUSubtypeVax8800 + const CPUSubtypeVaxAll + const CPUSubtypeX8664All + const CPUSubtypeX86All + const CPUSubtypeX86Arch1 + const CPUSubtypeX86_64H + func (st CPUSubtype) Capabilities(cpu CPU) string + func (st CPUSubtype) GoString(cpu CPU) string + func (st CPUSubtype) String(cpu CPU) string + type CodeSignatureCmd LinkEditDataCmd + type CustomSectionReader struct + func NewCustomSectionReader(r io.ReaderAt, vma *VMAddrConverter, off int64, n int64) *CustomSectionReader + func (s *CustomSectionReader) Read(p []byte) (n int, err error) + func (s *CustomSectionReader) ReadAt(p []byte, off int64) (n int, err error) + func (s *CustomSectionReader) ReadAtAddr(buf []byte, addr uint64) (int, error) + func (s *CustomSectionReader) Seek(offset int64, whence int) (int64, error) + func (s *CustomSectionReader) SeekToAddr(addr uint64) error + func (s *CustomSectionReader) Size() int64 + type DataInCodeCmd LinkEditDataCmd + type DataInCodeEntry struct + Kind DiceKind + Length uint16 + Offset uint32 + type DiceKind uint16 + const KindAbsJumpTable32 + const KindData + const KindJumpTable16 + const KindJumpTable32 + const KindJumpTable8 + func (i DiceKind) String() string + type DyldChainedFixupsCmd LinkEditDataCmd + type DyldEnvironmentCmd DylinkerCmd + type DyldExportsTrieCmd LinkEditDataCmd + type DyldInfoCmd struct + BindOff uint32 + BindSize uint32 + ExportOff uint32 + ExportSize uint32 + LazyBindOff uint32 + LazyBindSize uint32 + Len uint32 + RebaseOff uint32 + RebaseSize uint32 + WeakBindOff uint32 + WeakBindSize uint32 + type DyldInfoOnlyCmd DyldInfoCmd + type DylibCmd struct + CompatVersion Version + CurrentVersion Version + Len uint32 + NameOffset uint32 + Timestamp uint32 + type DylibCodeSignDrsCmd LinkEditDataCmd + type DylibModule struct + Iextdefsym uint32 + Iextrel uint32 + IinitIterm uint32 + Ilocalsym uint32 + Irefsym uint32 + ModuleName uint32 + Nextdefsym uint32 + Nextrel uint32 + NinitNterm uint32 + Nlocalsym uint32 + Nrefsym uint32 + ObjcModuleInfoAddr uint32 + ObjcModuleInfoSize uint32 + type DylibModule64 struct + Iextdefsym uint32 + Iextrel uint32 + IinitIterm uint32 + Ilocalsym uint32 + Irefsym uint32 + ModuleName uint32 + Nextdefsym uint32 + Nextrel uint32 + NinitNterm uint32 + Nlocalsym uint32 + Nrefsym uint32 + ObjcModuleInfoAddr uint64 + ObjcModuleInfoSize uint32 + type DylibReference uint32 + func (d DylibReference) Flags() uint8 + func (d DylibReference) SymIndex() uint32 + type DylibTableOfContents struct + ModuleIndex uint32 + SymbolIndex uint32 + type DylibUseCmd struct + CompatVersion uint32 + CurrentVersion uint32 + Flags DylibUseFlags + Len uint32 + Marker uint32 + NameOffset uint32 + type DylibUseFlags uint32 + const DYLIB_USE_DELAYED_INIT + const DYLIB_USE_REEXPORT + const DYLIB_USE_UPWARD + const DYLIB_USE_WEAK_LINK + type DylinkerCmd struct + Len uint32 + NameOffset uint32 + type DysymtabCmd struct + Extrefsymoff uint32 + Extreloff uint32 + Iextdefsym uint32 + Ilocalsym uint32 + Indirectsymoff uint32 + Iundefsym uint32 + Len uint32 + Locreloff uint32 + Modtaboff uint32 + Nextdefsym uint32 + Nextrefsyms uint32 + Nextrel uint32 + Nindirectsyms uint32 + Nlocalsym uint32 + Nlocrel uint32 + Nmodtab uint32 + Ntoc uint32 + Nundefsym uint32 + Tocoffset uint32 + type EncryptionInfo64Cmd struct + CryptID EncryptionSystem + Len uint32 + Offset uint32 + Pad uint32 + Size uint32 + type EncryptionInfoCmd struct + CryptID EncryptionSystem + Len uint32 + Offset uint32 + Size uint32 + type EncryptionSystem uint32 + const NOT_ENCRYPTED_YET + type EntryPointCmd struct + EntryOffset uint64 + Len uint32 + StackSize uint64 + type ExportFlag int + const EXPORT_SYMBOL_FLAGS_KIND_ABSOLUTE + const EXPORT_SYMBOL_FLAGS_KIND_MASK + const EXPORT_SYMBOL_FLAGS_KIND_REGULAR + const EXPORT_SYMBOL_FLAGS_KIND_THREAD_LOCAL + const EXPORT_SYMBOL_FLAGS_REEXPORT + const EXPORT_SYMBOL_FLAGS_STATIC_RESOLVER + const EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER + const EXPORT_SYMBOL_FLAGS_WEAK_DEFINITION + func (f ExportFlag) Absolute() bool + func (f ExportFlag) ReExport() bool + func (f ExportFlag) Regular() bool + func (f ExportFlag) StaticResolver() bool + func (f ExportFlag) String() string + func (f ExportFlag) StubAndResolver() bool + func (f ExportFlag) ThreadLocal() bool + func (f ExportFlag) WeakDefinition() bool + type FileHeader struct + CPU CPU + Flags HeaderFlag + Magic Magic + NCommands uint32 + Reserved uint32 + SizeCommands uint32 + SubCPU CPUSubtype + Type HeaderFileType + func (h *FileHeader) MarshalJSON() ([]byte, error) + func (h *FileHeader) Print(printer func(h *FileHeader) string) string + func (h *FileHeader) Put(b []byte, o binary.ByteOrder) int + func (h *FileHeader) String() string + func (h *FileHeader) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type FilePointer struct + Offset uint64 + VMAdder uint64 + type FilesetEntryCmd struct + Addr uint64 + EntryIdOffset uint32 + FileOffset uint64 + Len uint32 + Reserved uint32 + type Function struct + EndAddr uint64 + Name string + StartAddr uint64 + type FunctionStartsCmd LinkEditDataCmd + type FvmFileCmd struct + HeaderAddr uint32 + Len uint32 + NameOffset uint32 + type HeaderFileType uint32 + const MH_BUNDLE + const MH_CORE + const MH_DSYM + const MH_DYLIB + const MH_DYLIB_STUB + const MH_DYLINKER + const MH_EXECUTE + const MH_FILESET + const MH_FVMLIB + const MH_GPU_DYLIB + const MH_GPU_EXECUTE + const MH_KEXT_BUNDLE + const MH_OBJECT + const MH_PRELOAD + func (i HeaderFileType) String() string + type HeaderFlag uint32 + const AllModsBound + const AllowStackExecution + const AppExtensionSafe + const BindAtLoad + const BindsToWeak + const Canonical + const DeadStrippableDylib + const DyldLink + const DylibInCache + const ForceFlat + const HasTLVDescriptors + const ImplicitPagezero + const IncrLink + const LazyInit + const NlistOutofsyncWithDyldinfo + const NoFixPrebinding + const NoHeapExecution + const NoMultiDefs + const NoReexportedDylibs + const NoUndefs + const None + const PIE + const Prebindable + const Prebound + const RootSafe + const SetuidSafe + const SimSupport + const SplitSegs + const SubsectionsViaSymbols + const TwoLevel + const WeakDefines + func (f *HeaderFlag) Set(flag HeaderFlag, set bool) + func (f HeaderFlag) AllModsBound() bool + func (f HeaderFlag) AllowStackExecution() bool + func (f HeaderFlag) AppExtensionSafe() bool + func (f HeaderFlag) BindAtLoad() bool + func (f HeaderFlag) BindsToWeak() bool + func (f HeaderFlag) Canonical() bool + func (f HeaderFlag) DeadStrippableDylib() bool + func (f HeaderFlag) DyldLink() bool + func (f HeaderFlag) DylibInCache() bool + func (f HeaderFlag) Flags() []string + func (f HeaderFlag) ForceFlat() bool + func (f HeaderFlag) HasTLVDescriptors() bool + func (f HeaderFlag) ImplicitPagezero() bool + func (f HeaderFlag) IncrLink() bool + func (f HeaderFlag) LazyInit() bool + func (f HeaderFlag) NlistOutofsyncWithDyldinfo() bool + func (f HeaderFlag) NoFixPrebinding() bool + func (f HeaderFlag) NoHeapExecution() bool + func (f HeaderFlag) NoMultiDefs() bool + func (f HeaderFlag) NoReexportedDylibs() bool + func (f HeaderFlag) NoUndefs() bool + func (f HeaderFlag) None() bool + func (f HeaderFlag) PIE() bool + func (f HeaderFlag) Prebindable() bool + func (f HeaderFlag) Prebound() bool + func (f HeaderFlag) RootSafe() bool + func (f HeaderFlag) SetuidSafe() bool + func (f HeaderFlag) SimSupport() bool + func (f HeaderFlag) SplitSegs() bool + func (f HeaderFlag) String() string + func (f HeaderFlag) SubsectionsViaSymbols() bool + func (f HeaderFlag) TwoLevel() bool + func (f HeaderFlag) WeakDefines() bool + type IDDylibCmd DylibCmd + type IDDylinkerCmd DylinkerCmd + type IDFvmLibCmd LoadFvmLibCmd + type IdentCmd struct + Len uint32 + type Int64Name struct + I uint64 + S string + type IntName struct + I uint32 + S string + type LazyLoadDylibCmd DylibCmd + type LinkEditDataCmd struct + Len uint32 + Offset uint32 + Size uint32 + type LinkerOptimizationHintCmd LinkEditDataCmd + type LinkerOptionCmd struct + Count uint32 + Len uint32 + type LoadCmd uint32 + const LC_ATOM_INFO + const LC_BUILD_VERSION + const LC_CODE_SIGNATURE + const LC_DATA_IN_CODE + const LC_DYLD_CHAINED_FIXUPS + const LC_DYLD_ENVIRONMENT + const LC_DYLD_EXPORTS_TRIE + const LC_DYLD_INFO + const LC_DYLD_INFO_ONLY + const LC_DYLIB_CODE_SIGN_DRS + const LC_DYSYMTAB + const LC_ENCRYPTION_INFO + const LC_ENCRYPTION_INFO_64 + const LC_FILESET_ENTRY + const LC_FUNCTION_STARTS + const LC_FVMFILE + const LC_IDENT + const LC_IDFVMLIB + const LC_ID_DYLIB + const LC_ID_DYLINKER + const LC_LAZY_LOAD_DYLIB + const LC_LINKER_OPTIMIZATION_HINT + const LC_LINKER_OPTION + const LC_LOADFVMLIB + const LC_LOAD_DYLIB + const LC_LOAD_DYLINKER + const LC_LOAD_UPWARD_DYLIB + const LC_LOAD_WEAK_DYLIB + const LC_MAIN + const LC_NOTE + const LC_PREBIND_CKSUM + const LC_PREBOUND_DYLIB + const LC_PREPAGE + const LC_REEXPORT_DYLIB + const LC_REQ_DYLD + const LC_ROUTINES + const LC_ROUTINES_64 + const LC_RPATH + const LC_SEGMENT + const LC_SEGMENT_64 + const LC_SEGMENT_SPLIT_INFO + const LC_SOURCE_VERSION + const LC_SUB_CLIENT + const LC_SUB_FRAMEWORK + const LC_SUB_LIBRARY + const LC_SUB_UMBRELLA + const LC_SYMSEG + const LC_SYMTAB + const LC_THREAD + const LC_TWOLEVEL_HINTS + const LC_UNIXTHREAD + const LC_UUID + const LC_VERSION_MIN_IPHONEOS + const LC_VERSION_MIN_MACOSX + const LC_VERSION_MIN_TVOS + const LC_VERSION_MIN_WATCHOS + func (c LoadCmd) Command() LoadCmd + func (i LoadCmd) String() string + type LoadDylibCmd DylibCmd + type LoadFvmLibCmd struct + HeaderAddr uint32 + Len uint32 + MinorVersion Version + NameOffset uint32 + type LoadUpwardDylibCmd DylibCmd + type LoadWeakDylibCmd DylibCmd + type MachoReader interface + ReadAtAddr func(buf []byte, addr uint64) (int, error) + SeekToAddr func(addr uint64) error + type Magic uint32 + const Magic32 + const Magic64 + const MagicFat + func (i Magic) GoString() string + func (i Magic) Int() uint32 + func (i Magic) String() string + type NDescType uint16 + const ALT_ENTRY + const ARM_THUMB_DEF + const DESC_DISCARDED + const NO_DEAD_STRIP + const N_COLD_FUNC + const REFERENCED_DYNAMICALLY + const REFERENCE_FLAG_DEFINED + const REFERENCE_FLAG_PRIVATE_DEFINED + const REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY + const REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY + const REFERENCE_FLAG_UNDEFINED_LAZY + const REFERENCE_FLAG_UNDEFINED_NON_LAZY + const REFERENCE_TYPE_MASK + const REF_TO_WEAK + const SYMBOL_RESOLVER + const WEAK_DEF + const WEAK_REF + func (d NDescType) GetCommAlign() NDescType + func (d NDescType) GetLibraryOrdinal() uint16 + func (d NDescType) IsAltEntry() bool + func (d NDescType) IsArmThumbDefintion() bool + func (d NDescType) IsColdFunc() bool + func (d NDescType) IsDefined() bool + func (d NDescType) IsDescDiscarded() bool + func (d NDescType) IsNoDeadStrip() bool + func (d NDescType) IsPrivateDefined() bool + func (d NDescType) IsPrivateUndefinedLazy() bool + func (d NDescType) IsPrivateUndefinedNonLazy() bool + func (d NDescType) IsReferenceToWeak() bool + func (d NDescType) IsReferencedDynamically() bool + func (d NDescType) IsSymbolResolver() bool + func (d NDescType) IsUndefinedLazy() bool + func (d NDescType) IsUndefinedNonLazy() bool + func (d NDescType) IsWeakDefintion() bool + func (d NDescType) IsWeakDefintionOrReferenced() bool + func (d NDescType) IsWeakReferenced() bool + func (t NDescType) String() string + type NType uint8 + const N_ABS + const N_AST + const N_BCOMM + const N_BINCL + const N_BNSYM + const N_ECOML + const N_ECOMM + const N_EINCL + const N_ENSYM + const N_ENTRY + const N_EXCL + const N_EXT + const N_FNAME + const N_FUN + const N_GSYM + const N_INDR + const N_LBRAC + const N_LCSYM + const N_LENG + const N_LIB + const N_LSYM + const N_OLEVEL + const N_OPT + const N_OSO + const N_PARAMS + const N_PBUD + const N_PC + const N_PEXT + const N_PSYM + const N_RBRAC + const N_RSYM + const N_SECT + const N_SLINE + const N_SO + const N_SOL + const N_SSYM + const N_STAB + const N_STSYM + const N_TYPE + const N_UNDF + const N_VERSION + func (t NType) IsAbsoluteSym() bool + func (t NType) IsAlternateEntry() bool + func (t NType) IsAstFilePath() bool + func (t NType) IsBeginCommon() bool + func (t NType) IsBeginNsectSym() bool + func (t NType) IsCompilerOLevel() bool + func (t NType) IsCompilerParams() bool + func (t NType) IsCompilerVersion() bool + func (t NType) IsDebugSym() bool + func (t NType) IsDefinedInSection() bool + func (t NType) IsDeletedIncludeFile() bool + func (t NType) IsEndCommon() bool + func (t NType) IsEndCommonLocal() bool + func (t NType) IsEndNsectSym() bool + func (t NType) IsExternalSym() bool + func (t NType) IsGccCompiled() bool + func (t NType) IsGlobal() bool + func (t NType) IsIncludeFileBegin() bool + func (t NType) IsIncludeFileEnd() bool + func (t NType) IsIncludedFile() bool + func (t NType) IsIndirectSym() bool + func (t NType) IsLcommSym() bool + func (t NType) IsLeftBracket() bool + func (t NType) IsLib() bool + func (t NType) IsLocalSym() bool + func (t NType) IsObjectFile() bool + func (t NType) IsParameter() bool + func (t NType) IsPascalSymbol() bool + func (t NType) IsPreboundUndefinedSym() bool + func (t NType) IsPrivateExternalSym() bool + func (t NType) IsProcedure() bool + func (t NType) IsProcedureName() bool + func (t NType) IsRegisterSym() bool + func (t NType) IsRightBracket() bool + func (t NType) IsSecondStabEntry() bool + func (t NType) IsSourceFile() bool + func (t NType) IsSourceLine() bool + func (t NType) IsStatic() bool + func (t NType) IsStructure() bool + func (t NType) IsUndefinedSym() bool + func (t NType) String(secName string) string + type Nlist struct + Desc NDescType + Name uint32 + Sect uint8 + Type NType + type Nlist32 struct + Value uint32 + func (n *Nlist32) Put32(b []byte, o binary.ByteOrder) uint32 + type Nlist64 struct + Value uint64 + func (n *Nlist64) Put64(b []byte, o binary.ByteOrder) uint32 + type NoteCmd struct + DataOwner [16]byte + Len uint32 + Offset uint64 + Size uint64 + type Platform uint32 + const PLATFORM_IOS_EXCLAVECORE + const PLATFORM_IOS_EXCLAVEKIT + const PLATFORM_MACOS_EXCLAVECORE + const PLATFORM_MACOS_EXCLAVEKIT + const PLATFORM_TVOS_EXCLAVECORE + const PLATFORM_TVOS_EXCLAVEKIT + const PLATFORM_WATCHOS_EXCLAVECORE + const PLATFORM_WATCHOS_EXCLAVEKIT + func GetPlatformByName(name string) (Platform, error) + func (i Platform) String() string + type PrePageCmd struct + Len uint32 + type PrebindCksumCmd struct + CheckSum uint32 + Len uint32 + type PreboundDylibCmd struct + Len uint32 + LinkedModulesOffset uint32 + NameOffset uint32 + NumModules uint32 + type ReExportDylibCmd DylibCmd + type Rebase struct + Offset uint64 + Section string + Segment string + Start uint64 + Type uint8 + Value uint64 + func (r Rebase) String() string + type Reloc struct + Addr uint32 + Extern bool + Len uint8 + Pcrel bool + Scattered bool + Type uint8 + Value uint32 + func (r *Reloc) MarshalJSON() ([]byte, error) + type RelocInfo struct + Addr uint32 + Symnum uint32 + type RelocTypeARM int + const ARM_RELOC_BR24 + const ARM_RELOC_HALF + const ARM_RELOC_HALF_SECTDIFF + const ARM_RELOC_LOCAL_SECTDIFF + const ARM_RELOC_PAIR + const ARM_RELOC_PB_LA_PTR + const ARM_RELOC_SECTDIFF + const ARM_RELOC_VANILLA + const ARM_THUMB_32BIT_BRANCH + const ARM_THUMB_RELOC_BR22 + func (i RelocTypeARM) String() string + func (r RelocTypeARM) GoString() string + type RelocTypeARM64 int + const ARM64_RELOC_ADDEND + const ARM64_RELOC_BRANCH26 + const ARM64_RELOC_GOT_LOAD_PAGE21 + const ARM64_RELOC_GOT_LOAD_PAGEOFF12 + const ARM64_RELOC_PAGE21 + const ARM64_RELOC_PAGEOFF12 + const ARM64_RELOC_POINTER_TO_GOT + const ARM64_RELOC_SUBTRACTOR + const ARM64_RELOC_TLVP_LOAD_PAGE21 + const ARM64_RELOC_TLVP_LOAD_PAGEOFF12 + const ARM64_RELOC_UNSIGNED + func (i RelocTypeARM64) String() string + func (r RelocTypeARM64) GoString() string + type RelocTypeGeneric int + const GENERIC_RELOC_LOCAL_SECTDIFF + const GENERIC_RELOC_PAIR + const GENERIC_RELOC_PB_LA_PTR + const GENERIC_RELOC_SECTDIFF + const GENERIC_RELOC_TLV + const GENERIC_RELOC_VANILLA + func (i RelocTypeGeneric) String() string + func (r RelocTypeGeneric) GoString() string + type RelocTypeX86_64 int + const X86_64_RELOC_BRANCH + const X86_64_RELOC_GOT + const X86_64_RELOC_GOT_LOAD + const X86_64_RELOC_SIGNED + const X86_64_RELOC_SIGNED_1 + const X86_64_RELOC_SIGNED_2 + const X86_64_RELOC_SIGNED_4 + const X86_64_RELOC_SUBTRACTOR + const X86_64_RELOC_TLV + const X86_64_RELOC_UNSIGNED + func (i RelocTypeX86_64) String() string + func (r RelocTypeX86_64) GoString() string + type Routines64Cmd struct + InitAddress uint64 + InitModule uint64 + Len uint32 + Reserved1 uint64 + Reserved2 uint64 + Reserved3 uint64 + Reserved4 uint64 + Reserved5 uint64 + Reserved6 uint64 + type RoutinesCmd struct + InitAddress uint32 + InitModule uint32 + Len uint32 + Reserved1 uint32 + Reserved2 uint32 + Reserved3 uint32 + Reserved4 uint32 + Reserved5 uint32 + Reserved6 uint32 + type RpathCmd struct + Len uint32 + PathOffset uint32 + type Section struct + Relocs []Reloc + func (s *Section) Copy() *Section + func (s *Section) Data() ([]byte, error) + func (s *Section) MarshalJSON() ([]byte, error) + func (s *Section) Open() io.ReadSeeker + func (s *Section) Put32(b []byte, o binary.ByteOrder) int + func (s *Section) Put64(b []byte, o binary.ByteOrder) int + func (s *Section) PutData(b []byte) + func (s *Section) PutRelocs(b []byte, o binary.ByteOrder) int + func (s *Section) PutUncompressedData(b []byte) + func (s *Section) SetReaders(r io.ReaderAt, sr *io.SectionReader) + func (s *Section) String() string + func (s *Section) UncompressedSize() uint64 + func (s *Section) Write(buf *bytes.Buffer, o binary.ByteOrder) error + type Section32 struct + Addr uint32 + Align uint32 + Flags SectionFlag + Name [16]byte + Nreloc uint32 + Offset uint32 + Reloff uint32 + Reserve1 uint32 + Reserve2 uint32 + Seg [16]byte + Size uint32 + type Section64 struct + Addr uint64 + Align uint32 + Flags SectionFlag + Name [16]byte + Nreloc uint32 + Offset uint32 + Reloff uint32 + Reserve1 uint32 + Reserve2 uint32 + Reserve3 uint32 + Seg [16]byte + Size uint64 + type SectionFlag uint32 + const ByteLiterals16 + const ByteLiterals4 + const ByteLiterals8 + const Coalesced + const CstringLiterals + const DEBUG + const DtraceDof + const EXT_RELOC + const GbZerofill + const InitFuncOffsets + const Interposing + const LIVE_SUPPORT + const LOC_RELOC + const LazyDylibSymbolPointers + const LazySymbolPointers + const LiteralPointers + const ModInitFuncPointers + const ModTermFuncPointers + const NO_TOC + const NoDeadStrip + const NonLazySymbolPointers + const PURE_INSTRUCTIONS + const Regular + const SECTION_ATTRIBUTES_SYS + const SECTION_ATTRIBUTES_USR + const SELF_MODIFYING_CODE + const SOME_INSTRUCTIONS + const STRIP_STATIC_SYMS + const SectionAttributes + const SectionType + const SymbolStubs + const ThreadLocalInitFunctionPointers + const ThreadLocalRegular + const ThreadLocalVariablePointers + const ThreadLocalVariables + const ThreadLocalZerofill + const Zerofill + func (f SectionFlag) Attributes() string + func (f SectionFlag) AttributesList() []string + func (f SectionFlag) List() []string + func (f SectionFlag) String() string + func (t SectionFlag) Is16ByteLiterals() bool + func (t SectionFlag) Is4ByteLiterals() bool + func (t SectionFlag) Is8ByteLiterals() bool + func (t SectionFlag) IsCoalesced() bool + func (t SectionFlag) IsCstringLiterals() bool + func (t SectionFlag) IsDebug() bool + func (t SectionFlag) IsDtraceDof() bool + func (t SectionFlag) IsExtReloc() bool + func (t SectionFlag) IsGbZerofill() bool + func (t SectionFlag) IsInitFuncOffsets() bool + func (t SectionFlag) IsInterposing() bool + func (t SectionFlag) IsLazyDylibSymbolPointers() bool + func (t SectionFlag) IsLazySymbolPointers() bool + func (t SectionFlag) IsLiteralPointers() bool + func (t SectionFlag) IsLiveSupport() bool + func (t SectionFlag) IsLocReloc() bool + func (t SectionFlag) IsModInitFuncPointers() bool + func (t SectionFlag) IsModTermFuncPointers() bool + func (t SectionFlag) IsNoDeadStrip() bool + func (t SectionFlag) IsNoToc() bool + func (t SectionFlag) IsNonLazySymbolPointers() bool + func (t SectionFlag) IsPureInstructions() bool + func (t SectionFlag) IsRegular() bool + func (t SectionFlag) IsSelfModifyingCode() bool + func (t SectionFlag) IsSomeInstructions() bool + func (t SectionFlag) IsStripStaticSyms() bool + func (t SectionFlag) IsSymbolStubs() bool + func (t SectionFlag) IsThreadLocalInitFunctionPointers() bool + func (t SectionFlag) IsThreadLocalRegular() bool + func (t SectionFlag) IsThreadLocalVariablePointers() bool + func (t SectionFlag) IsThreadLocalVariables() bool + func (t SectionFlag) IsThreadLocalZerofill() bool + func (t SectionFlag) IsZerofill() bool + type SectionHeader struct + Addr uint64 + Align uint32 + Flags SectionFlag + Name string + Nreloc uint32 + Offset uint32 + Reloff uint32 + Reserved1 uint32 + Reserved2 uint32 + Reserved3 uint32 + Seg string + Size uint64 + Type uint8 + type SegFlag uint32 + const FvmLib + const HighVM + const NoReLoc + const ProtectedVersion1 + const ReadOnly + func (s SegFlag) List() []string + func (s SegFlag) String() string + type Segment32 struct + Addr uint32 + Filesz uint32 + Flag SegFlag + Len uint32 + Maxprot VmProtection + Memsz uint32 + Name [16]byte + Nsect uint32 + Offset uint32 + Prot VmProtection + type Segment64 struct + Addr uint64 + Filesz uint64 + Flag SegFlag + Len uint32 + Maxprot VmProtection + Memsz uint64 + Name [16]byte + Nsect uint32 + Offset uint64 + Prot VmProtection + type SegmentSplitInfoCmd LinkEditDataCmd + type SourceVersionCmd struct + Len uint32 + Version SrcVersion + type SplitInfoKind uint64 + const DYLD_CACHE_ADJ_V2_ARM64_ADRP + const DYLD_CACHE_ADJ_V2_ARM64_BR26 + const DYLD_CACHE_ADJ_V2_ARM64_OFF12 + const DYLD_CACHE_ADJ_V2_ARM_BR24 + const DYLD_CACHE_ADJ_V2_ARM_MOVW_MOVT + const DYLD_CACHE_ADJ_V2_DELTA_32 + const DYLD_CACHE_ADJ_V2_DELTA_64 + const DYLD_CACHE_ADJ_V2_FORMAT + const DYLD_CACHE_ADJ_V2_IMAGE_OFF_32 + const DYLD_CACHE_ADJ_V2_POINTER_32 + const DYLD_CACHE_ADJ_V2_POINTER_64 + const DYLD_CACHE_ADJ_V2_THREADED_POINTER_64 + const DYLD_CACHE_ADJ_V2_THUMB_BR22 + const DYLD_CACHE_ADJ_V2_THUMB_MOVW_MOVT + func (k SplitInfoKind) String() string + type SrcVersion uint64 + func (sv SrcVersion) String() string + type SubClientCmd struct + ClientOffset uint32 + Len uint32 + type SubFrameworkCmd struct + FrameworkOffset uint32 + Len uint32 + type SubLibraryCmd struct + Len uint32 + LibraryOffset uint32 + type SubUmbrellaCmd struct + Len uint32 + UmbrellaOffset uint32 + type SymsegCmd struct + Len uint32 + Offset uint32 + Size uint32 + type SymtabCmd struct + Len uint32 + Nsyms uint32 + Stroff uint32 + Strsize uint32 + Symoff uint32 + type ThreadCmd struct + Len uint32 + type ThreadFlavor uint32 + const ARM_CPMU_STATE64 + const ARM_DEBUG_STATE + const ARM_DEBUG_STATE32 + const ARM_DEBUG_STATE64 + const ARM_EXCEPTION_STATE + const ARM_EXCEPTION_STATE64 + const ARM_NEON_STATE + const ARM_NEON_STATE64 + const ARM_PAGEIN_STATE + const ARM_THREAD_STATE + const ARM_THREAD_STATE32 + const ARM_THREAD_STATE64 + const ARM_THREAD_STATE_NONE + const ARM_UNIFIED_THREAD_STATE + const ARM_VFP_STATE + const X86_AVX512_STATE + const X86_AVX512_STATE32 + const X86_AVX512_STATE64 + const X86_AVX_STATE + const X86_AVX_STATE32 + const X86_AVX_STATE64 + const X86_DEBUG_STATE + const X86_DEBUG_STATE32 + const X86_DEBUG_STATE64 + const X86_EXCEPTION_STATE + const X86_EXCEPTION_STATE32 + const X86_EXCEPTION_STATE64 + const X86_FLOAT_STATE + const X86_FLOAT_STATE32 + const X86_FLOAT_STATE64 + const X86_INSTRUCTION_STATE + const X86_LAST_BRANCH_STATE + const X86_PAGEIN_STATE + const X86_THREAD_FULL_STATE64 + const X86_THREAD_STATE + const X86_THREAD_STATE32 + const X86_THREAD_STATE64 + const X86_THREAD_STATE_NONE + type ThreadState struct + Count uint32 + Data []byte + Flavor ThreadFlavor + type TlvDescriptor struct + Key uint64 + Offset uint64 + Thunk uint64 + type Tool uint32 + const AirLld + const AirNt + const AirNtPlugin + const AirPack + const GpuArchiver + const Metal + const MetalFramework + func GetToolByName(name string) (Tool, error) + func (i Tool) String() string + type TwolevelHint uint32 + func (t TwolevelHint) MarshalJSON() ([]byte, error) + func (t TwolevelHint) SubImageIndex() uint8 + func (t TwolevelHint) TableOfContentsIndex() uint32 + type TwolevelHintsCmd struct + Len uint32 + NumHints uint32 + Offset uint32 + type UUID [16]byte + func (u UUID) IsNull() bool + func (u UUID) String() string + type UUIDCmd struct + Len uint32 + UUID UUID + type UnixThreadCmd ThreadCmd + type VMAddrConverter struct + ChainedPointerFormat uint16 + Converter func(uint64) uint64 + IsContentRebased bool + Offet2VMAddr func(uint64) (uint64, error) + PreferredLoadAddress uint64 + SharedCacheChainedPointerFormat uint8 + Slide int64 + VMAddr2Offet func(uint64) (uint64, error) + func (v *VMAddrConverter) Convert(addr uint64) uint64 + func (v *VMAddrConverter) GetOffset(address uint64) (uint64, error) + func (v *VMAddrConverter) GetVMAddress(offset uint64) (uint64, error) + type Version uint32 + func (v *Version) Set(version string) error + func (v Version) String() string + type VersionMinCmd struct + Len uint32 + Sdk Version + Version Version + type VersionMinIPhoneOSCmd VersionMinCmd + type VersionMinMacOSCmd VersionMinCmd + type VersionMinTvOSCmd VersionMinCmd + type VersionMinWatchOSCmd VersionMinCmd + type VmProtection int32 + func (v VmProtection) Execute() bool + func (v VmProtection) Read() bool + func (v VmProtection) String() string + func (v VmProtection) Write() bool + type WriteAtBuffer struct + GrowthCoeff float64 + func NewWriteAtBuffer(buf []byte) *WriteAtBuffer + func (b *WriteAtBuffer) Bytes() []byte + func (b *WriteAtBuffer) WriteAt(p []byte, pos int64) (n int, err error)