go2hx

manual

github

Module: stdgo.debug.macho

(view library index)

Overview

Index

Constants

import stdgo.debug.macho.Macho
final arm64_RELOC_ADDEND:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_ADDEND.arm64_RELOC_ADDEND
final arm64_RELOC_BRANCH26:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_BRANCH26.arm64_RELOC_BRANCH26
final arm64_RELOC_GOT_LOAD_PAGE21:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_GOT_LOAD_PAGE21.arm64_RELOC_GOT_LOAD_PAGE21
final arm64_RELOC_GOT_LOAD_PAGEOFF12:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_GOT_LOAD_PAGEOFF12.arm64_RELOC_GOT_LOAD_PAGEOFF12
final arm64_RELOC_PAGE21:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_PAGE21.arm64_RELOC_PAGE21
final arm64_RELOC_PAGEOFF12:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_PAGEOFF12.arm64_RELOC_PAGEOFF12
final arm64_RELOC_POINTER_TO_GOT:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_POINTER_TO_GOT.arm64_RELOC_POINTER_TO_GOT
final arm64_RELOC_SUBTRACTOR:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_SUBTRACTOR.arm64_RELOC_SUBTRACTOR
final arm64_RELOC_TLVP_LOAD_PAGE21:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_TLVP_LOAD_PAGE21.arm64_RELOC_TLVP_LOAD_PAGE21
final arm64_RELOC_TLVP_LOAD_PAGEOFF12:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_TLVP_LOAD_PAGEOFF12.arm64_RELOC_TLVP_LOAD_PAGEOFF12
final arm64_RELOC_UNSIGNED:stdgo.debug.macho.RelocTypeARM64 = stdgo._internal.debug.macho.Macho_arm64_RELOC_UNSIGNED.arm64_RELOC_UNSIGNED
final arm_RELOC_BR24:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_RELOC_BR24.arm_RELOC_BR24
final arm_RELOC_HALF:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_RELOC_HALF.arm_RELOC_HALF
final arm_RELOC_HALF_SECTDIFF:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_RELOC_HALF_SECTDIFF.arm_RELOC_HALF_SECTDIFF
final arm_RELOC_LOCAL_SECTDIFF:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_RELOC_LOCAL_SECTDIFF.arm_RELOC_LOCAL_SECTDIFF
final arm_RELOC_PAIR:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_RELOC_PAIR.arm_RELOC_PAIR
final arm_RELOC_PB_LA_PTR:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_RELOC_PB_LA_PTR.arm_RELOC_PB_LA_PTR
final arm_RELOC_SECTDIFF:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_RELOC_SECTDIFF.arm_RELOC_SECTDIFF
final arm_RELOC_VANILLA:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_RELOC_VANILLA.arm_RELOC_VANILLA
final arm_THUMB_32BIT_BRANCH:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_THUMB_32BIT_BRANCH.arm_THUMB_32BIT_BRANCH
final arm_THUMB_RELOC_BR22:stdgo.debug.macho.RelocTypeARM = stdgo._internal.debug.macho.Macho_arm_THUMB_RELOC_BR22.arm_THUMB_RELOC_BR22
final cpu386:stdgo.debug.macho.Cpu = stdgo._internal.debug.macho.Macho_cpu386.cpu386
final cpuAmd64:stdgo.debug.macho.Cpu = stdgo._internal.debug.macho.Macho_cpuAmd64.cpuAmd64
final cpuArm:stdgo.debug.macho.Cpu = stdgo._internal.debug.macho.Macho_cpuArm.cpuArm
final cpuArm64:stdgo.debug.macho.Cpu = stdgo._internal.debug.macho.Macho_cpuArm64.cpuArm64
final cpuPpc:stdgo.debug.macho.Cpu = stdgo._internal.debug.macho.Macho_cpuPpc.cpuPpc
final cpuPpc64:stdgo.debug.macho.Cpu = stdgo._internal.debug.macho.Macho_cpuPpc64.cpuPpc64
final flagAllModsBound:UInt = stdgo._internal.debug.macho.Macho_flagAllModsBound.flagAllModsBound
final flagAllowStackExecution:UInt = stdgo._internal.debug.macho.Macho_flagAllowStackExecution.flagAllowStackExecution
final flagAppExtensionSafe:UInt = stdgo._internal.debug.macho.Macho_flagAppExtensionSafe.flagAppExtensionSafe
final flagBindAtLoad:UInt = stdgo._internal.debug.macho.Macho_flagBindAtLoad.flagBindAtLoad
final flagBindsToWeak:UInt = stdgo._internal.debug.macho.Macho_flagBindsToWeak.flagBindsToWeak
final flagCanonical:UInt = stdgo._internal.debug.macho.Macho_flagCanonical.flagCanonical
final flagDeadStrippableDylib:UInt = stdgo._internal.debug.macho.Macho_flagDeadStrippableDylib.flagDeadStrippableDylib
final flagDyldLink:UInt = stdgo._internal.debug.macho.Macho_flagDyldLink.flagDyldLink
final flagForceFlat:UInt = stdgo._internal.debug.macho.Macho_flagForceFlat.flagForceFlat
final flagHasTLVDescriptors:UInt = stdgo._internal.debug.macho.Macho_flagHasTLVDescriptors.flagHasTLVDescriptors
final flagIncrLink:UInt = stdgo._internal.debug.macho.Macho_flagIncrLink.flagIncrLink
final flagLazyInit:UInt = stdgo._internal.debug.macho.Macho_flagLazyInit.flagLazyInit
final flagNoFixPrebinding:UInt = stdgo._internal.debug.macho.Macho_flagNoFixPrebinding.flagNoFixPrebinding
final flagNoHeapExecution:UInt = stdgo._internal.debug.macho.Macho_flagNoHeapExecution.flagNoHeapExecution
final flagNoMultiDefs:UInt = stdgo._internal.debug.macho.Macho_flagNoMultiDefs.flagNoMultiDefs
final flagNoReexportedDylibs:UInt = stdgo._internal.debug.macho.Macho_flagNoReexportedDylibs.flagNoReexportedDylibs
final flagNoUndefs:UInt = stdgo._internal.debug.macho.Macho_flagNoUndefs.flagNoUndefs
final flagPIE:UInt = stdgo._internal.debug.macho.Macho_flagPIE.flagPIE
final flagPrebindable:UInt = stdgo._internal.debug.macho.Macho_flagPrebindable.flagPrebindable
final flagPrebound:UInt = stdgo._internal.debug.macho.Macho_flagPrebound.flagPrebound
final flagRootSafe:UInt = stdgo._internal.debug.macho.Macho_flagRootSafe.flagRootSafe
final flagSetuidSafe:UInt = stdgo._internal.debug.macho.Macho_flagSetuidSafe.flagSetuidSafe
final flagSplitSegs:UInt = stdgo._internal.debug.macho.Macho_flagSplitSegs.flagSplitSegs
final flagSubsectionsViaSymbols:UInt = stdgo._internal.debug.macho.Macho_flagSubsectionsViaSymbols.flagSubsectionsViaSymbols
final flagTwoLevel:UInt = stdgo._internal.debug.macho.Macho_flagTwoLevel.flagTwoLevel
final flagWeakDefines:UInt = stdgo._internal.debug.macho.Macho_flagWeakDefines.flagWeakDefines
final generic_RELOC_LOCAL_SECTDIFF:stdgo.debug.macho.RelocTypeGeneric = stdgo._internal.debug.macho.Macho_generic_RELOC_LOCAL_SECTDIFF.generic_RELOC_LOCAL_SECTDIFF
final generic_RELOC_PAIR:stdgo.debug.macho.RelocTypeGeneric = stdgo._internal.debug.macho.Macho_generic_RELOC_PAIR.generic_RELOC_PAIR
final generic_RELOC_PB_LA_PTR:stdgo.debug.macho.RelocTypeGeneric = stdgo._internal.debug.macho.Macho_generic_RELOC_PB_LA_PTR.generic_RELOC_PB_LA_PTR
final generic_RELOC_SECTDIFF:stdgo.debug.macho.RelocTypeGeneric = stdgo._internal.debug.macho.Macho_generic_RELOC_SECTDIFF.generic_RELOC_SECTDIFF
final generic_RELOC_TLV:stdgo.debug.macho.RelocTypeGeneric = stdgo._internal.debug.macho.Macho_generic_RELOC_TLV.generic_RELOC_TLV
final generic_RELOC_VANILLA:stdgo.debug.macho.RelocTypeGeneric = stdgo._internal.debug.macho.Macho_generic_RELOC_VANILLA.generic_RELOC_VANILLA
final loadCmdDylib:stdgo.debug.macho.LoadCmd = stdgo._internal.debug.macho.Macho_loadCmdDylib.loadCmdDylib
final loadCmdDylinker:stdgo.debug.macho.LoadCmd = stdgo._internal.debug.macho.Macho_loadCmdDylinker.loadCmdDylinker
final loadCmdDysymtab:stdgo.debug.macho.LoadCmd = stdgo._internal.debug.macho.Macho_loadCmdDysymtab.loadCmdDysymtab
final loadCmdRpath:stdgo.debug.macho.LoadCmd = stdgo._internal.debug.macho.Macho_loadCmdRpath.loadCmdRpath
final loadCmdSegment:stdgo.debug.macho.LoadCmd = stdgo._internal.debug.macho.Macho_loadCmdSegment.loadCmdSegment
final loadCmdSegment64:stdgo.debug.macho.LoadCmd = stdgo._internal.debug.macho.Macho_loadCmdSegment64.loadCmdSegment64
final loadCmdSymtab:stdgo.debug.macho.LoadCmd = stdgo._internal.debug.macho.Macho_loadCmdSymtab.loadCmdSymtab
final loadCmdThread:stdgo.debug.macho.LoadCmd = stdgo._internal.debug.macho.Macho_loadCmdThread.loadCmdThread
final loadCmdUnixThread:stdgo.debug.macho.LoadCmd = stdgo._internal.debug.macho.Macho_loadCmdUnixThread.loadCmdUnixThread
final magic32:UInt = stdgo._internal.debug.macho.Macho_magic32.magic32
final magic64:UInt = stdgo._internal.debug.macho.Macho_magic64.magic64
final magicFat:UInt = stdgo._internal.debug.macho.Macho_magicFat.magicFat
final typeBundle:stdgo.debug.macho.Type_ = stdgo._internal.debug.macho.Macho_typeBundle.typeBundle
final typeDylib:stdgo.debug.macho.Type_ = stdgo._internal.debug.macho.Macho_typeDylib.typeDylib
final typeExec:stdgo.debug.macho.Type_ = stdgo._internal.debug.macho.Macho_typeExec.typeExec
final typeObj:stdgo.debug.macho.Type_ = stdgo._internal.debug.macho.Macho_typeObj.typeObj
final x86_64_RELOC_BRANCH:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_BRANCH.x86_64_RELOC_BRANCH
final x86_64_RELOC_GOT:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_GOT.x86_64_RELOC_GOT
final x86_64_RELOC_GOT_LOAD:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_GOT_LOAD.x86_64_RELOC_GOT_LOAD
final x86_64_RELOC_SIGNED:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_SIGNED.x86_64_RELOC_SIGNED
final x86_64_RELOC_SIGNED_1:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_SIGNED_1.x86_64_RELOC_SIGNED_1
final x86_64_RELOC_SIGNED_2:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_SIGNED_2.x86_64_RELOC_SIGNED_2
final x86_64_RELOC_SIGNED_4:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_SIGNED_4.x86_64_RELOC_SIGNED_4
final x86_64_RELOC_SUBTRACTOR:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_SUBTRACTOR.x86_64_RELOC_SUBTRACTOR
final x86_64_RELOC_TLV:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_TLV.x86_64_RELOC_TLV
final x86_64_RELOC_UNSIGNED:stdgo.debug.macho.RelocTypeX86_64 = stdgo._internal.debug.macho.Macho_x86_64_RELOC_UNSIGNED.x86_64_RELOC_UNSIGNED

Variables

import stdgo.debug.macho.Macho
var errNotFat:stdgo.debug.macho.FormatError

Classes

import stdgo.debug.macho.*

class Macho

Package macho implements access to Mach-O object files.

Security

This package is not designed to be hardened against adversarial inputs, and is outside the scope of https://go.dev/security/policy. In particular, only basic validation is done when parsing object files. As such, care should be taken when parsing untrusted inputs, as parsing malformed files may consume significant resources, or cause panics.

Macho function newFatFile

function newFatFile(_r:stdgo._internal.io.ReaderAt):stdgo.Tuple<stdgo.debug.macho.FatFile, stdgo.Error>
NewFatFile creates a new FatFile for accessing all the Mach-O images in a
        universal binary. The Mach-O binary is expected to start at position 0 in
        the ReaderAt.

(view code)

Macho function newFile

function newFile(_r:stdgo._internal.io.ReaderAt):stdgo.Tuple<stdgo.debug.macho.File, stdgo.Error>
NewFile creates a new File for accessing a Mach-O binary in an underlying reader.
        The Mach-O binary is expected to start at position 0 in the ReaderAt.

(view code)

Macho function open

function open(_name:String):stdgo.Tuple<stdgo.debug.macho.File, stdgo.Error>

Open opens the named file using os.Open and prepares it for use as a Mach-O binary.

(view code)

Macho function openFat

function openFat(_name:String):stdgo.Tuple<stdgo.debug.macho.FatFile, stdgo.Error>
OpenFat opens the named file using os.Open and prepares it for use as a Mach-O
        universal binary.

(view code)

Typedefs

import stdgo.debug.macho.*

typedef Cpu

typedef Cpu = stdgo._internal.debug.macho.Cpu;

typedef Load

typedef Load = stdgo._internal.debug.macho.Load;

typedef LoadBytes

typedef LoadBytes = stdgo._internal.debug.macho.LoadBytes;

typedef LoadCmd

typedef LoadCmd = stdgo._internal.debug.macho.LoadCmd;

typedef RelocTypeARM

typedef RelocTypeARM = stdgo._internal.debug.macho.RelocTypeARM;

typedef RelocTypeARM64

typedef RelocTypeARM64 = stdgo._internal.debug.macho.RelocTypeARM64;

typedef RelocTypeGeneric

typedef RelocTypeGeneric = stdgo._internal.debug.macho.RelocTypeGeneric;

typedef RelocTypeX86_64

typedef RelocTypeX86_64 = stdgo._internal.debug.macho.RelocTypeX86_64;

typedef T__struct_0

typedef T__struct_0 = stdgo._internal.debug.macho.T__struct_0;

typedef Type_

typedef Type_ = stdgo._internal.debug.macho.Type_;

Abstracts

abstract FatFile

(view file containing code)

abstract FatArchHeader

(view file containing code)

abstract FatArch

(view file containing code)

abstract File

(view file containing code)

abstract SegmentHeader

(view file containing code)

abstract Segment

(view file containing code)

abstract SectionHeader

(view file containing code)

abstract Reloc

(view file containing code)

abstract Section

(view file containing code)

abstract Dylib

(view file containing code)

abstract Symtab

(view file containing code)

abstract Dysymtab

(view file containing code)

abstract Rpath

(view file containing code)

abstract Symbol

(view file containing code)

abstract FormatError

(view file containing code)

abstract T_relocInfo

(view file containing code)

abstract FileHeader

(view file containing code)

abstract Segment32

(view file containing code)

abstract Segment64

(view file containing code)

abstract SymtabCmd

(view file containing code)

abstract DysymtabCmd

(view file containing code)

abstract DylibCmd

(view file containing code)

abstract RpathCmd

(view file containing code)

abstract Thread

(view file containing code)

abstract Section32

(view file containing code)

abstract Section64

(view file containing code)

abstract Nlist32

(view file containing code)

abstract Nlist64

(view file containing code)

abstract Regs386

(view file containing code)

abstract RegsAMD64

(view file containing code)

abstract T_intName

(view file containing code)