github.com/goplus/gossa@v0.3.25/pkg/debug/pe/go114_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.14,!go1.15 4 5 package pe 6 7 import ( 8 q "debug/pe" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "pe", 19 Path: "debug/pe", 20 Deps: map[string]string{ 21 "bytes": "bytes", 22 "compress/zlib": "zlib", 23 "debug/dwarf": "dwarf", 24 "encoding/binary": "binary", 25 "fmt": "fmt", 26 "io": "io", 27 "os": "os", 28 "strconv": "strconv", 29 "strings": "strings", 30 }, 31 Interfaces: map[string]reflect.Type{}, 32 NamedTypes: map[string]gossa.NamedType{ 33 "COFFSymbol": {reflect.TypeOf((*q.COFFSymbol)(nil)).Elem(), "", "FullName"}, 34 "DataDirectory": {reflect.TypeOf((*q.DataDirectory)(nil)).Elem(), "", ""}, 35 "File": {reflect.TypeOf((*q.File)(nil)).Elem(), "", "Close,DWARF,ImportedLibraries,ImportedSymbols,Section"}, 36 "FileHeader": {reflect.TypeOf((*q.FileHeader)(nil)).Elem(), "", ""}, 37 "FormatError": {reflect.TypeOf((*q.FormatError)(nil)).Elem(), "", "Error"}, 38 "ImportDirectory": {reflect.TypeOf((*q.ImportDirectory)(nil)).Elem(), "", ""}, 39 "OptionalHeader32": {reflect.TypeOf((*q.OptionalHeader32)(nil)).Elem(), "", ""}, 40 "OptionalHeader64": {reflect.TypeOf((*q.OptionalHeader64)(nil)).Elem(), "", ""}, 41 "Reloc": {reflect.TypeOf((*q.Reloc)(nil)).Elem(), "", ""}, 42 "Section": {reflect.TypeOf((*q.Section)(nil)).Elem(), "", "Data,Open"}, 43 "SectionHeader": {reflect.TypeOf((*q.SectionHeader)(nil)).Elem(), "", ""}, 44 "SectionHeader32": {reflect.TypeOf((*q.SectionHeader32)(nil)).Elem(), "", "fullName"}, 45 "StringTable": {reflect.TypeOf((*q.StringTable)(nil)).Elem(), "String", ""}, 46 "Symbol": {reflect.TypeOf((*q.Symbol)(nil)).Elem(), "", ""}, 47 }, 48 AliasTypes: map[string]reflect.Type{}, 49 Vars: map[string]reflect.Value{}, 50 Funcs: map[string]reflect.Value{ 51 "NewFile": reflect.ValueOf(q.NewFile), 52 "Open": reflect.ValueOf(q.Open), 53 }, 54 TypedConsts: map[string]gossa.TypedConst{}, 55 UntypedConsts: map[string]gossa.UntypedConst{ 56 "COFFSymbolSize": {"untyped int", constant.MakeInt64(int64(q.COFFSymbolSize))}, 57 "IMAGE_DIRECTORY_ENTRY_ARCHITECTURE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_ARCHITECTURE))}, 58 "IMAGE_DIRECTORY_ENTRY_BASERELOC": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_BASERELOC))}, 59 "IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT))}, 60 "IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR))}, 61 "IMAGE_DIRECTORY_ENTRY_DEBUG": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_DEBUG))}, 62 "IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT))}, 63 "IMAGE_DIRECTORY_ENTRY_EXCEPTION": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_EXCEPTION))}, 64 "IMAGE_DIRECTORY_ENTRY_EXPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_EXPORT))}, 65 "IMAGE_DIRECTORY_ENTRY_GLOBALPTR": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_GLOBALPTR))}, 66 "IMAGE_DIRECTORY_ENTRY_IAT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_IAT))}, 67 "IMAGE_DIRECTORY_ENTRY_IMPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_IMPORT))}, 68 "IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG))}, 69 "IMAGE_DIRECTORY_ENTRY_RESOURCE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_RESOURCE))}, 70 "IMAGE_DIRECTORY_ENTRY_SECURITY": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_SECURITY))}, 71 "IMAGE_DIRECTORY_ENTRY_TLS": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_TLS))}, 72 "IMAGE_FILE_MACHINE_AM33": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_AM33))}, 73 "IMAGE_FILE_MACHINE_AMD64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_AMD64))}, 74 "IMAGE_FILE_MACHINE_ARM": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_ARM))}, 75 "IMAGE_FILE_MACHINE_ARM64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_ARM64))}, 76 "IMAGE_FILE_MACHINE_ARMNT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_ARMNT))}, 77 "IMAGE_FILE_MACHINE_EBC": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_EBC))}, 78 "IMAGE_FILE_MACHINE_I386": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_I386))}, 79 "IMAGE_FILE_MACHINE_IA64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_IA64))}, 80 "IMAGE_FILE_MACHINE_M32R": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_M32R))}, 81 "IMAGE_FILE_MACHINE_MIPS16": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_MIPS16))}, 82 "IMAGE_FILE_MACHINE_MIPSFPU": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_MIPSFPU))}, 83 "IMAGE_FILE_MACHINE_MIPSFPU16": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_MIPSFPU16))}, 84 "IMAGE_FILE_MACHINE_POWERPC": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_POWERPC))}, 85 "IMAGE_FILE_MACHINE_POWERPCFP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_POWERPCFP))}, 86 "IMAGE_FILE_MACHINE_R4000": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_R4000))}, 87 "IMAGE_FILE_MACHINE_SH3": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH3))}, 88 "IMAGE_FILE_MACHINE_SH3DSP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH3DSP))}, 89 "IMAGE_FILE_MACHINE_SH4": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH4))}, 90 "IMAGE_FILE_MACHINE_SH5": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH5))}, 91 "IMAGE_FILE_MACHINE_THUMB": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_THUMB))}, 92 "IMAGE_FILE_MACHINE_UNKNOWN": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_UNKNOWN))}, 93 "IMAGE_FILE_MACHINE_WCEMIPSV2": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_WCEMIPSV2))}, 94 }, 95 }) 96 }