Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const FlagAllModsBound + const FlagAllowStackExecution + const FlagAppExtensionSafe + const FlagBindAtLoad + const FlagBindsToWeak + const FlagCanonical + const FlagDeadStrippableDylib + const FlagDyldLink + const FlagForceFlat + const FlagHasTLVDescriptors + const FlagIncrLink + const FlagLazyInit + const FlagNoFixPrebinding + const FlagNoHeapExecution + const FlagNoMultiDefs + const FlagNoReexportedDylibs + const FlagNoUndefs + const FlagPIE + const FlagPrebindable + const FlagPrebound + const FlagRootSafe + const FlagSetuidSafe + const FlagSplitSegs + const FlagSubsectionsViaSymbols + const FlagTwoLevel + const FlagWeakDefines + const Magic32 + const Magic64 + const MagicFat + var ErrNotFat = &FormatError + type Cpu uint32 + const Cpu386 + const CpuAmd64 + const CpuArm + const CpuArm64 + const CpuPpc + const CpuPpc64 + func (i Cpu) GoString() string + func (i Cpu) String() string + type Dylib struct + CompatVersion uint32 + CurrentVersion uint32 + Name string + Time uint32 + type DylibCmd struct + Cmd LoadCmd + CompatVersion uint32 + CurrentVersion uint32 + Len uint32 + Name uint32 + Time uint32 + type Dysymtab struct + IndirectSyms []uint32 + type DysymtabCmd struct + Cmd LoadCmd + 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 FatArch struct + type FatArchHeader struct + Align uint32 + Cpu Cpu + Offset uint32 + Size uint32 + SubCpu uint32 + type FatFile struct + Arches []FatArch + Magic uint32 + func NewFatFile(r io.ReaderAt) (*FatFile, error) + func OpenFat(name string) (*FatFile, error) + func (ff *FatFile) Close() error + type File struct + ByteOrder binary.ByteOrder + Dysymtab *Dysymtab + Loads []Load + Sections []*Section + Symtab *Symtab + func NewFile(r io.ReaderAt) (*File, error) + func Open(name string) (*File, error) + func (f *File) Close() error + func (f *File) DWARF() (*dwarf.Data, error) + func (f *File) ImportedLibraries() ([]string, error) + func (f *File) ImportedSymbols() ([]string, error) + func (f *File) Section(name string) *Section + func (f *File) Segment(name string) *Segment + type FileHeader struct + Cmdsz uint32 + Cpu Cpu + Flags uint32 + Magic uint32 + Ncmd uint32 + SubCpu uint32 + Type Type + type FormatError struct + func (e *FormatError) Error() string + type Load interface + Raw func() []byte + type LoadBytes []byte + func (b LoadBytes) Raw() []byte + type LoadCmd uint32 + const LoadCmdDylib + const LoadCmdDylinker + const LoadCmdDysymtab + const LoadCmdRpath + const LoadCmdSegment + const LoadCmdSegment64 + const LoadCmdSymtab + const LoadCmdThread + const LoadCmdUnixThread + func (i LoadCmd) GoString() string + func (i LoadCmd) String() string + type Nlist32 struct + Desc uint16 + Name uint32 + Sect uint8 + Type uint8 + Value uint32 + type Nlist64 struct + Desc uint16 + Name uint32 + Sect uint8 + Type uint8 + Value uint64 + type Regs386 struct + AX uint32 + BP uint32 + BX uint32 + CS uint32 + CX uint32 + DI uint32 + DS uint32 + DX uint32 + ES uint32 + FLAGS uint32 + FS uint32 + GS uint32 + IP uint32 + SI uint32 + SP uint32 + SS uint32 + type RegsAMD64 struct + AX uint64 + BP uint64 + BX uint64 + CS uint64 + CX uint64 + DI uint64 + DX uint64 + FLAGS uint64 + FS uint64 + GS uint64 + IP uint64 + R10 uint64 + R11 uint64 + R12 uint64 + R13 uint64 + R14 uint64 + R15 uint64 + R8 uint64 + R9 uint64 + SI uint64 + SP uint64 + type Reloc struct + Addr uint32 + Extern bool + Len uint8 + Pcrel bool + Scattered bool + Type uint8 + Value 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 Rpath struct + Path string + type RpathCmd struct + Cmd LoadCmd + Len uint32 + Path uint32 + type Section struct + Relocs []Reloc + func (s *Section) Data() ([]byte, error) + func (s *Section) Open() io.ReadSeeker + type Section32 struct + Addr uint32 + Align uint32 + Flags uint32 + 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 uint32 + Name [16]byte + Nreloc uint32 + Offset uint32 + Reloff uint32 + Reserve1 uint32 + Reserve2 uint32 + Reserve3 uint32 + Seg [16]byte + Size uint64 + type SectionHeader struct + Addr uint64 + Align uint32 + Flags uint32 + Name string + Nreloc uint32 + Offset uint32 + Reloff uint32 + Seg string + Size uint64 + type Segment struct + func (s *Segment) Data() ([]byte, error) + func (s *Segment) Open() io.ReadSeeker + type Segment32 struct + Addr uint32 + Cmd LoadCmd + Filesz uint32 + Flag uint32 + Len uint32 + Maxprot uint32 + Memsz uint32 + Name [16]byte + Nsect uint32 + Offset uint32 + Prot uint32 + type Segment64 struct + Addr uint64 + Cmd LoadCmd + Filesz uint64 + Flag uint32 + Len uint32 + Maxprot uint32 + Memsz uint64 + Name [16]byte + Nsect uint32 + Offset uint64 + Prot uint32 + type SegmentHeader struct + Addr uint64 + Cmd LoadCmd + Filesz uint64 + Flag uint32 + Len uint32 + Maxprot uint32 + Memsz uint64 + Name string + Nsect uint32 + Offset uint64 + Prot uint32 + type Symbol struct + Desc uint16 + Name string + Sect uint8 + Type uint8 + Value uint64 + type Symtab struct + Syms []Symbol + type SymtabCmd struct + Cmd LoadCmd + Len uint32 + Nsyms uint32 + Stroff uint32 + Strsize uint32 + Symoff uint32 + type Thread struct + Cmd LoadCmd + Data []uint32 + Len uint32 + Type uint32 + type Type uint32 + const TypeBundle + const TypeDylib + const TypeExec + const TypeObj + func (t Type) GoString() string + func (t Type) String() string