github.com/goplus/gossa@v0.3.25/pkg/debug/pe/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package pe 7 8 import ( 9 q "debug/pe" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "pe", 20 Path: "debug/pe", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "compress/zlib": "zlib", 24 "debug/dwarf": "dwarf", 25 "encoding/binary": "binary", 26 "fmt": "fmt", 27 "io": "io", 28 "os": "os", 29 "strconv": "strconv", 30 "strings": "strings", 31 }, 32 Interfaces: map[string]reflect.Type{}, 33 NamedTypes: map[string]gossa.NamedType{ 34 "COFFSymbol": {reflect.TypeOf((*q.COFFSymbol)(nil)).Elem(), "", "FullName"}, 35 "DataDirectory": {reflect.TypeOf((*q.DataDirectory)(nil)).Elem(), "", ""}, 36 "File": {reflect.TypeOf((*q.File)(nil)).Elem(), "", "Close,DWARF,ImportedLibraries,ImportedSymbols,Section"}, 37 "FileHeader": {reflect.TypeOf((*q.FileHeader)(nil)).Elem(), "", ""}, 38 "FormatError": {reflect.TypeOf((*q.FormatError)(nil)).Elem(), "", "Error"}, 39 "ImportDirectory": {reflect.TypeOf((*q.ImportDirectory)(nil)).Elem(), "", ""}, 40 "OptionalHeader32": {reflect.TypeOf((*q.OptionalHeader32)(nil)).Elem(), "", ""}, 41 "OptionalHeader64": {reflect.TypeOf((*q.OptionalHeader64)(nil)).Elem(), "", ""}, 42 "Reloc": {reflect.TypeOf((*q.Reloc)(nil)).Elem(), "", ""}, 43 "Section": {reflect.TypeOf((*q.Section)(nil)).Elem(), "", "Data,Open"}, 44 "SectionHeader": {reflect.TypeOf((*q.SectionHeader)(nil)).Elem(), "", ""}, 45 "SectionHeader32": {reflect.TypeOf((*q.SectionHeader32)(nil)).Elem(), "", "fullName"}, 46 "StringTable": {reflect.TypeOf((*q.StringTable)(nil)).Elem(), "String", ""}, 47 "Symbol": {reflect.TypeOf((*q.Symbol)(nil)).Elem(), "", ""}, 48 }, 49 AliasTypes: map[string]reflect.Type{}, 50 Vars: map[string]reflect.Value{}, 51 Funcs: map[string]reflect.Value{ 52 "NewFile": reflect.ValueOf(q.NewFile), 53 "Open": reflect.ValueOf(q.Open), 54 }, 55 TypedConsts: map[string]gossa.TypedConst{}, 56 UntypedConsts: map[string]gossa.UntypedConst{ 57 "COFFSymbolSize": {"untyped int", constant.MakeInt64(int64(q.COFFSymbolSize))}, 58 "IMAGE_DIRECTORY_ENTRY_ARCHITECTURE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_ARCHITECTURE))}, 59 "IMAGE_DIRECTORY_ENTRY_BASERELOC": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_BASERELOC))}, 60 "IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT))}, 61 "IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR))}, 62 "IMAGE_DIRECTORY_ENTRY_DEBUG": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_DEBUG))}, 63 "IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT))}, 64 "IMAGE_DIRECTORY_ENTRY_EXCEPTION": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_EXCEPTION))}, 65 "IMAGE_DIRECTORY_ENTRY_EXPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_EXPORT))}, 66 "IMAGE_DIRECTORY_ENTRY_GLOBALPTR": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_GLOBALPTR))}, 67 "IMAGE_DIRECTORY_ENTRY_IAT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_IAT))}, 68 "IMAGE_DIRECTORY_ENTRY_IMPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_IMPORT))}, 69 "IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG))}, 70 "IMAGE_DIRECTORY_ENTRY_RESOURCE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_RESOURCE))}, 71 "IMAGE_DIRECTORY_ENTRY_SECURITY": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_SECURITY))}, 72 "IMAGE_DIRECTORY_ENTRY_TLS": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_TLS))}, 73 "IMAGE_DLLCHARACTERISTICS_APPCONTAINER": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_APPCONTAINER))}, 74 "IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE))}, 75 "IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY))}, 76 "IMAGE_DLLCHARACTERISTICS_GUARD_CF": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_GUARD_CF))}, 77 "IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA))}, 78 "IMAGE_DLLCHARACTERISTICS_NO_BIND": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_NO_BIND))}, 79 "IMAGE_DLLCHARACTERISTICS_NO_ISOLATION": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_NO_ISOLATION))}, 80 "IMAGE_DLLCHARACTERISTICS_NO_SEH": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_NO_SEH))}, 81 "IMAGE_DLLCHARACTERISTICS_NX_COMPAT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_NX_COMPAT))}, 82 "IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE))}, 83 "IMAGE_DLLCHARACTERISTICS_WDM_DRIVER": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_WDM_DRIVER))}, 84 "IMAGE_FILE_32BIT_MACHINE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_32BIT_MACHINE))}, 85 "IMAGE_FILE_AGGRESIVE_WS_TRIM": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_AGGRESIVE_WS_TRIM))}, 86 "IMAGE_FILE_BYTES_REVERSED_HI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_BYTES_REVERSED_HI))}, 87 "IMAGE_FILE_BYTES_REVERSED_LO": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_BYTES_REVERSED_LO))}, 88 "IMAGE_FILE_DEBUG_STRIPPED": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_DEBUG_STRIPPED))}, 89 "IMAGE_FILE_DLL": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_DLL))}, 90 "IMAGE_FILE_EXECUTABLE_IMAGE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_EXECUTABLE_IMAGE))}, 91 "IMAGE_FILE_LARGE_ADDRESS_AWARE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_LARGE_ADDRESS_AWARE))}, 92 "IMAGE_FILE_LINE_NUMS_STRIPPED": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_LINE_NUMS_STRIPPED))}, 93 "IMAGE_FILE_LOCAL_SYMS_STRIPPED": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_LOCAL_SYMS_STRIPPED))}, 94 "IMAGE_FILE_MACHINE_AM33": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_AM33))}, 95 "IMAGE_FILE_MACHINE_AMD64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_AMD64))}, 96 "IMAGE_FILE_MACHINE_ARM": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_ARM))}, 97 "IMAGE_FILE_MACHINE_ARM64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_ARM64))}, 98 "IMAGE_FILE_MACHINE_ARMNT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_ARMNT))}, 99 "IMAGE_FILE_MACHINE_EBC": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_EBC))}, 100 "IMAGE_FILE_MACHINE_I386": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_I386))}, 101 "IMAGE_FILE_MACHINE_IA64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_IA64))}, 102 "IMAGE_FILE_MACHINE_M32R": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_M32R))}, 103 "IMAGE_FILE_MACHINE_MIPS16": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_MIPS16))}, 104 "IMAGE_FILE_MACHINE_MIPSFPU": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_MIPSFPU))}, 105 "IMAGE_FILE_MACHINE_MIPSFPU16": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_MIPSFPU16))}, 106 "IMAGE_FILE_MACHINE_POWERPC": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_POWERPC))}, 107 "IMAGE_FILE_MACHINE_POWERPCFP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_POWERPCFP))}, 108 "IMAGE_FILE_MACHINE_R4000": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_R4000))}, 109 "IMAGE_FILE_MACHINE_SH3": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH3))}, 110 "IMAGE_FILE_MACHINE_SH3DSP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH3DSP))}, 111 "IMAGE_FILE_MACHINE_SH4": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH4))}, 112 "IMAGE_FILE_MACHINE_SH5": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH5))}, 113 "IMAGE_FILE_MACHINE_THUMB": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_THUMB))}, 114 "IMAGE_FILE_MACHINE_UNKNOWN": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_UNKNOWN))}, 115 "IMAGE_FILE_MACHINE_WCEMIPSV2": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_WCEMIPSV2))}, 116 "IMAGE_FILE_NET_RUN_FROM_SWAP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_NET_RUN_FROM_SWAP))}, 117 "IMAGE_FILE_RELOCS_STRIPPED": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_RELOCS_STRIPPED))}, 118 "IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP))}, 119 "IMAGE_FILE_SYSTEM": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_SYSTEM))}, 120 "IMAGE_FILE_UP_SYSTEM_ONLY": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_UP_SYSTEM_ONLY))}, 121 "IMAGE_SUBSYSTEM_EFI_APPLICATION": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_EFI_APPLICATION))}, 122 "IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER))}, 123 "IMAGE_SUBSYSTEM_EFI_ROM": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_EFI_ROM))}, 124 "IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER))}, 125 "IMAGE_SUBSYSTEM_NATIVE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_NATIVE))}, 126 "IMAGE_SUBSYSTEM_NATIVE_WINDOWS": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_NATIVE_WINDOWS))}, 127 "IMAGE_SUBSYSTEM_OS2_CUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_OS2_CUI))}, 128 "IMAGE_SUBSYSTEM_POSIX_CUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_POSIX_CUI))}, 129 "IMAGE_SUBSYSTEM_UNKNOWN": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_UNKNOWN))}, 130 "IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION))}, 131 "IMAGE_SUBSYSTEM_WINDOWS_CE_GUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_WINDOWS_CE_GUI))}, 132 "IMAGE_SUBSYSTEM_WINDOWS_CUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_WINDOWS_CUI))}, 133 "IMAGE_SUBSYSTEM_WINDOWS_GUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_WINDOWS_GUI))}, 134 "IMAGE_SUBSYSTEM_XBOX": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_XBOX))}, 135 }, 136 }) 137 }