Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const AIAFMAG + const AIAMAG + const AIAMAGBIG + const AR_HSZ_BIG + const C_BCOMM + const C_BINCL + const C_BLOCK + const C_BSTAT + const C_DECL + const C_DWARF + const C_ECOML + const C_ECOMM + const C_EINCL + const C_ENTRY + const C_ESTAT + const C_EXT + const C_FCN + const C_FILE + const C_FUN + const C_GSYM + const C_GTLS + const C_HIDEXT + const C_LSYM + const C_NULL + const C_PSYM + const C_RPSYM + const C_RSYM + const C_STAT + const C_STSYM + const C_STTLS + const C_WEAKEXT + const FILHSZ_32 + const FILHSZ_64 + const FL_HSZ_BIG + const F_DSA + const F_DYNLOAD + const F_EXEC + const F_FDPR_OPTI + const F_FDPR_PROF + const F_LNNO + const F_LOADONLY + const F_RELFLG + const F_SHROBJ + const F_VARPG + const LDHDRSZ_32 + const LDHDRSZ_64 + const N_ABS + const N_DEBUG + const N_UNDEF + const R_BA + const R_BR + const R_GL + const R_NEG + const R_POS + const R_RBA + const R_RBR + const R_REF + const R_REL + const R_RL + const R_RLA + const R_TCL + const R_TLS + const R_TLSM + const R_TLSML + const R_TLS_IE + const R_TLS_LD + const R_TLS_LE + const R_TOC + const R_TOCL + const R_TOCU + const R_TRL + const R_TRLA + const SAIAMAG + const SSUBTYP_DWABREV + const SSUBTYP_DWARNGE + const SSUBTYP_DWFRAME + const SSUBTYP_DWINFO + const SSUBTYP_DWLINE + const SSUBTYP_DWLOC + const SSUBTYP_DWMAC + const SSUBTYP_DWPBNMS + const SSUBTYP_DWPBTYP + const SSUBTYP_DWRNGES + const SSUBTYP_DWSTR + const STYP_BSS + const STYP_DATA + const STYP_DEBUG + const STYP_DWARF + const STYP_EXCEPT + const STYP_INFO + const STYP_LOADER + const STYP_OVRFLO + const STYP_TBSS + const STYP_TDATA + const STYP_TEXT + const STYP_TYPCHK + const SYMESZ + const SYM_TYPE_FUNC + const SYM_V_EXPORTED + const SYM_V_HIDDEN + const SYM_V_INTERNAL + const SYM_V_PROTECTED + const U64_TOCMAGIC + const U802TOCMAGIC + const XFT_CD + const XFT_CT + const XFT_CV + const XFT_FN + const XMC_BS + const XMC_DB + const XMC_DS + const XMC_GL + const XMC_PR + const XMC_RO + const XMC_RW + const XMC_SV + const XMC_SV3264 + const XMC_SV64 + const XMC_TC + const XMC_TC0 + const XMC_TD + const XMC_TE + const XMC_TL + const XMC_UA + const XMC_UC + const XMC_UL + const XMC_XO + const XTY_CM + const XTY_ER + const XTY_LD + const XTY_SD + type Archive struct + Members []*Member + func NewArchive(r io.ReaderAt) (*Archive, error) + func OpenArchive(name string) (*Archive, error) + func (a *Archive) Close() error + func (arch *Archive) GetFile(name string) (*File, error) + type ArchiveHeader struct + type AuxCSect32 struct + Xparmhash uint32 + Xscnlen int32 + Xsmclas uint8 + Xsmtyp uint8 + Xsnhash uint16 + Xsnstab uint16 + Xstab uint32 + type AuxCSect64 struct + Xauxtype uint8 + Xpad uint8 + Xparmhash uint32 + Xscnlenhi int32 + Xscnlenlo uint32 + Xsmclas uint8 + Xsmtyp uint8 + Xsnhash uint16 + type AuxFcn32 struct + Xendndx uint32 + Xexptr uint32 + Xfsize uint32 + Xlnnoptr uint32 + Xpad uint16 + type AuxFcn64 struct + Xauxtype uint8 + Xendndx uint32 + Xfsize uint32 + Xlnnoptr uint64 + Xpad uint8 + type AuxFile64 struct + Xauxtype uint8 + Xfname [8]byte + Xftype uint8 + type AuxSect64 struct + Xauxtype uint8 + Xnreloc uint64 + Xscnlen uint64 + type AuxiliaryCSect struct + Length int64 + StorageMappingClass int + SymbolType int + type AuxiliaryFcn struct + Size int64 + type File struct + LibraryPaths []string + Sections []*Section + StringTable []byte + Symbols []*Symbol + func NewFile(r io.ReaderAt) (*File, error) + func Open(name string) (*File, error) + func (f *File) CSect(name string) []byte + func (f *File) Close() error + func (f *File) DWARF() (*dwarf.Data, error) + func (f *File) ImportedLibraries() ([]string, error) + func (f *File) ImportedSymbols() ([]ImportedSymbol, error) + func (f *File) Section(name string) *Section + func (f *File) SectionByType(typ uint32) *Section + type FileHeader struct + TargetMachine uint16 + type FileHeader32 struct + Fflags uint16 + Fmagic uint16 + Fnscns uint16 + Fnsyms int32 + Fopthdr uint16 + Fsymptr uint32 + Ftimedat int32 + type FileHeader64 struct + Fflags uint16 + Fmagic uint16 + Fnscns uint16 + Fnsyms int32 + Fopthdr uint16 + Fsymptr uint64 + Ftimedat int32 + type ImportedSymbol struct + Library string + Name string + type LoaderHeader32 struct + Limpoff uint32 + Listlen uint32 + Lnimpid int32 + Lnreloc int32 + Lnsyms int32 + Lstlen uint32 + Lstoff uint32 + Lversion int32 + type LoaderHeader64 struct + Limpoff uint64 + Listlen uint32 + Lnimpid int32 + Lnreloc int32 + Lnsyms int32 + Lrldoff uint64 + Lstlen uint32 + Lstoff uint64 + Lsymoff uint64 + Lversion int32 + type LoaderSymbol32 struct + Lifile int32 + Lname [8]byte + Lparm uint32 + Lscnum int16 + Lsmclas int8 + Lsmtype int8 + Lvalue uint32 + type LoaderSymbol64 struct + Lifile int32 + Loffset uint32 + Lparm uint32 + Lscnum int16 + Lsmclas int8 + Lsmtype int8 + Lvalue uint64 + type Member struct + type MemberHeader struct + Name string + Size uint64 + type Reloc struct + InstructionFixed bool + Length uint8 + Signed bool + Symbol *Symbol + Type uint8 + VirtualAddress uint64 + type Reloc32 struct + Rsize uint8 + Rsymndx uint32 + Rtype uint8 + Rvaddr uint32 + type Reloc64 struct + Rsize uint8 + Rsymndx uint32 + Rtype uint8 + Rvaddr uint64 + type Section struct + Relocs []Reloc + func (s *Section) Data() ([]byte, error) + type SectionHeader struct + Name string + Nreloc uint32 + Relptr uint64 + Size uint64 + Type uint32 + VirtualAddress uint64 + type SectionHeader32 struct + Sflags uint32 + Slnnoptr uint32 + Sname [8]byte + Snlnno uint16 + Snreloc uint16 + Spaddr uint32 + Srelptr uint32 + Sscnptr uint32 + Ssize uint32 + Svaddr uint32 + type SectionHeader64 struct + Sflags uint32 + Slnnoptr uint64 + Sname [8]byte + Snlnno uint32 + Snreloc uint32 + Spad uint32 + Spaddr uint64 + Srelptr uint64 + Sscnptr uint64 + Ssize uint64 + Svaddr uint64 + type SymEnt32 struct + Nname [8]byte + Nnumaux int8 + Nsclass int8 + Nscnum int16 + Ntype uint16 + Nvalue uint32 + type SymEnt64 struct + Nnumaux int8 + Noffset uint32 + Nsclass int8 + Nscnum int16 + Ntype uint16 + Nvalue uint64 + type Symbol struct + AuxCSect AuxiliaryCSect + AuxFcn AuxiliaryFcn + Name string + SectionNumber int + StorageClass int + Value uint64