Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const COFFSymbolSize + const IMAGE_DIRECTORY_ENTRY_ARCHITECTURE + const IMAGE_DIRECTORY_ENTRY_BASERELOC + const IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT + const IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR + const IMAGE_DIRECTORY_ENTRY_DEBUG + const IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT + const IMAGE_DIRECTORY_ENTRY_EXCEPTION + const IMAGE_DIRECTORY_ENTRY_EXPORT + const IMAGE_DIRECTORY_ENTRY_GLOBALPTR + const IMAGE_DIRECTORY_ENTRY_IAT + const IMAGE_DIRECTORY_ENTRY_IMPORT + const IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG + const IMAGE_DIRECTORY_ENTRY_RESOURCE + const IMAGE_DIRECTORY_ENTRY_SECURITY + const IMAGE_DIRECTORY_ENTRY_TLS + const IMAGE_DLLCHARACTERISTICS_APPCONTAINER + const IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE + const IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY + const IMAGE_DLLCHARACTERISTICS_GUARD_CF + const IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA + const IMAGE_DLLCHARACTERISTICS_NO_BIND + const IMAGE_DLLCHARACTERISTICS_NO_ISOLATION + const IMAGE_DLLCHARACTERISTICS_NO_SEH + const IMAGE_DLLCHARACTERISTICS_NX_COMPAT + const IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE + const IMAGE_DLLCHARACTERISTICS_WDM_DRIVER + const IMAGE_FILE_32BIT_MACHINE + const IMAGE_FILE_AGGRESIVE_WS_TRIM + const IMAGE_FILE_BYTES_REVERSED_HI + const IMAGE_FILE_BYTES_REVERSED_LO + const IMAGE_FILE_DEBUG_STRIPPED + const IMAGE_FILE_DLL + const IMAGE_FILE_EXECUTABLE_IMAGE + const IMAGE_FILE_LARGE_ADDRESS_AWARE + const IMAGE_FILE_LINE_NUMS_STRIPPED + const IMAGE_FILE_LOCAL_SYMS_STRIPPED + const IMAGE_FILE_MACHINE_AM33 + const IMAGE_FILE_MACHINE_AMD64 + const IMAGE_FILE_MACHINE_ARM + const IMAGE_FILE_MACHINE_ARM64 + const IMAGE_FILE_MACHINE_ARMNT + const IMAGE_FILE_MACHINE_EBC + const IMAGE_FILE_MACHINE_I386 + const IMAGE_FILE_MACHINE_IA64 + const IMAGE_FILE_MACHINE_M32R + const IMAGE_FILE_MACHINE_MIPS16 + const IMAGE_FILE_MACHINE_MIPSFPU + const IMAGE_FILE_MACHINE_MIPSFPU16 + const IMAGE_FILE_MACHINE_POWERPC + const IMAGE_FILE_MACHINE_POWERPCFP + const IMAGE_FILE_MACHINE_R4000 + const IMAGE_FILE_MACHINE_SH3 + const IMAGE_FILE_MACHINE_SH3DSP + const IMAGE_FILE_MACHINE_SH4 + const IMAGE_FILE_MACHINE_SH5 + const IMAGE_FILE_MACHINE_THUMB + const IMAGE_FILE_MACHINE_UNKNOWN + const IMAGE_FILE_MACHINE_WCEMIPSV2 + const IMAGE_FILE_NET_RUN_FROM_SWAP + const IMAGE_FILE_RELOCS_STRIPPED + const IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP + const IMAGE_FILE_SYSTEM + const IMAGE_FILE_UP_SYSTEM_ONLY + const IMAGE_SUBSYSTEM_EFI_APPLICATION + const IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER + const IMAGE_SUBSYSTEM_EFI_ROM + const IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER + const IMAGE_SUBSYSTEM_NATIVE + const IMAGE_SUBSYSTEM_NATIVE_WINDOWS + const IMAGE_SUBSYSTEM_OS2_CUI + const IMAGE_SUBSYSTEM_POSIX_CUI + const IMAGE_SUBSYSTEM_UNKNOWN + const IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION + const IMAGE_SUBSYSTEM_WINDOWS_CE_GUI + const IMAGE_SUBSYSTEM_WINDOWS_CUI + const IMAGE_SUBSYSTEM_WINDOWS_GUI + const IMAGE_SUBSYSTEM_XBOX + type COFFSymbol struct + Name [8]uint8 + NumberOfAuxSymbols uint8 + SectionNumber int16 + StorageClass uint8 + Type uint16 + Value uint32 + func (sym *COFFSymbol) FullName(st StringTable) (string, error) + type DataDirectory struct + Size uint32 + VirtualAddress uint32 + type File struct + COFFSymbols []COFFSymbol + OptionalHeader any + Sections []*Section + StringTable StringTable + Symbols []*Symbol + 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 + type FileHeader struct + Characteristics uint16 + Machine uint16 + NumberOfSections uint16 + NumberOfSymbols uint32 + PointerToSymbolTable uint32 + SizeOfOptionalHeader uint16 + TimeDateStamp uint32 + type FormatError struct + func (e *FormatError) Error() string + type ImportDirectory struct + FirstThunk uint32 + ForwarderChain uint32 + Name uint32 + OriginalFirstThunk uint32 + TimeDateStamp uint32 + type OptionalHeader32 struct + AddressOfEntryPoint uint32 + BaseOfCode uint32 + BaseOfData uint32 + CheckSum uint32 + DataDirectory [16]DataDirectory + DllCharacteristics uint16 + FileAlignment uint32 + ImageBase uint32 + LoaderFlags uint32 + Magic uint16 + MajorImageVersion uint16 + MajorLinkerVersion uint8 + MajorOperatingSystemVersion uint16 + MajorSubsystemVersion uint16 + MinorImageVersion uint16 + MinorLinkerVersion uint8 + MinorOperatingSystemVersion uint16 + MinorSubsystemVersion uint16 + NumberOfRvaAndSizes uint32 + SectionAlignment uint32 + SizeOfCode uint32 + SizeOfHeaders uint32 + SizeOfHeapCommit uint32 + SizeOfHeapReserve uint32 + SizeOfImage uint32 + SizeOfInitializedData uint32 + SizeOfStackCommit uint32 + SizeOfStackReserve uint32 + SizeOfUninitializedData uint32 + Subsystem uint16 + Win32VersionValue uint32 + type OptionalHeader64 struct + AddressOfEntryPoint uint32 + BaseOfCode uint32 + CheckSum uint32 + DataDirectory [16]DataDirectory + DllCharacteristics uint16 + FileAlignment uint32 + ImageBase uint64 + LoaderFlags uint32 + Magic uint16 + MajorImageVersion uint16 + MajorLinkerVersion uint8 + MajorOperatingSystemVersion uint16 + MajorSubsystemVersion uint16 + MinorImageVersion uint16 + MinorLinkerVersion uint8 + MinorOperatingSystemVersion uint16 + MinorSubsystemVersion uint16 + NumberOfRvaAndSizes uint32 + SectionAlignment uint32 + SizeOfCode uint32 + SizeOfHeaders uint32 + SizeOfHeapCommit uint64 + SizeOfHeapReserve uint64 + SizeOfImage uint32 + SizeOfInitializedData uint32 + SizeOfStackCommit uint64 + SizeOfStackReserve uint64 + SizeOfUninitializedData uint32 + Subsystem uint16 + Win32VersionValue uint32 + type Reloc struct + SymbolTableIndex uint32 + Type uint16 + VirtualAddress uint32 + type Section struct + Relocs []Reloc + func (s *Section) Data() ([]byte, error) + func (s *Section) Open() io.ReadSeeker + type SectionHeader struct + Characteristics uint32 + Name string + NumberOfLineNumbers uint16 + NumberOfRelocations uint16 + Offset uint32 + PointerToLineNumbers uint32 + PointerToRelocations uint32 + Size uint32 + VirtualAddress uint32 + VirtualSize uint32 + type SectionHeader32 struct + Characteristics uint32 + Name [8]uint8 + NumberOfLineNumbers uint16 + NumberOfRelocations uint16 + PointerToLineNumbers uint32 + PointerToRawData uint32 + PointerToRelocations uint32 + SizeOfRawData uint32 + VirtualAddress uint32 + VirtualSize uint32 + type StringTable []byte + func (st StringTable) String(start uint32) (string, error) + type Symbol struct + Name string + SectionNumber int16 + StorageClass uint8 + Type uint16 + Value uint32