github.com/goplus/igop@v0.25.0/pkg/debug/pe/go119_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.19 && !go1.20 4 // +build go1.19,!go1.20 5 6 package pe 7 8 import ( 9 q "debug/pe" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.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 "unsafe": "unsafe", 32 }, 33 Interfaces: map[string]reflect.Type{}, 34 NamedTypes: map[string]reflect.Type{ 35 "COFFSymbol": reflect.TypeOf((*q.COFFSymbol)(nil)).Elem(), 36 "COFFSymbolAuxFormat5": reflect.TypeOf((*q.COFFSymbolAuxFormat5)(nil)).Elem(), 37 "DataDirectory": reflect.TypeOf((*q.DataDirectory)(nil)).Elem(), 38 "File": reflect.TypeOf((*q.File)(nil)).Elem(), 39 "FileHeader": reflect.TypeOf((*q.FileHeader)(nil)).Elem(), 40 "FormatError": reflect.TypeOf((*q.FormatError)(nil)).Elem(), 41 "ImportDirectory": reflect.TypeOf((*q.ImportDirectory)(nil)).Elem(), 42 "OptionalHeader32": reflect.TypeOf((*q.OptionalHeader32)(nil)).Elem(), 43 "OptionalHeader64": reflect.TypeOf((*q.OptionalHeader64)(nil)).Elem(), 44 "Reloc": reflect.TypeOf((*q.Reloc)(nil)).Elem(), 45 "Section": reflect.TypeOf((*q.Section)(nil)).Elem(), 46 "SectionHeader": reflect.TypeOf((*q.SectionHeader)(nil)).Elem(), 47 "SectionHeader32": reflect.TypeOf((*q.SectionHeader32)(nil)).Elem(), 48 "StringTable": reflect.TypeOf((*q.StringTable)(nil)).Elem(), 49 "Symbol": reflect.TypeOf((*q.Symbol)(nil)).Elem(), 50 }, 51 AliasTypes: map[string]reflect.Type{}, 52 Vars: map[string]reflect.Value{}, 53 Funcs: map[string]reflect.Value{ 54 "NewFile": reflect.ValueOf(q.NewFile), 55 "Open": reflect.ValueOf(q.Open), 56 }, 57 TypedConsts: map[string]igop.TypedConst{}, 58 UntypedConsts: map[string]igop.UntypedConst{ 59 "COFFSymbolSize": {"untyped int", constant.MakeInt64(int64(q.COFFSymbolSize))}, 60 "IMAGE_COMDAT_SELECT_ANY": {"untyped int", constant.MakeInt64(int64(q.IMAGE_COMDAT_SELECT_ANY))}, 61 "IMAGE_COMDAT_SELECT_ASSOCIATIVE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_COMDAT_SELECT_ASSOCIATIVE))}, 62 "IMAGE_COMDAT_SELECT_EXACT_MATCH": {"untyped int", constant.MakeInt64(int64(q.IMAGE_COMDAT_SELECT_EXACT_MATCH))}, 63 "IMAGE_COMDAT_SELECT_LARGEST": {"untyped int", constant.MakeInt64(int64(q.IMAGE_COMDAT_SELECT_LARGEST))}, 64 "IMAGE_COMDAT_SELECT_NODUPLICATES": {"untyped int", constant.MakeInt64(int64(q.IMAGE_COMDAT_SELECT_NODUPLICATES))}, 65 "IMAGE_COMDAT_SELECT_SAME_SIZE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_COMDAT_SELECT_SAME_SIZE))}, 66 "IMAGE_DIRECTORY_ENTRY_ARCHITECTURE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_ARCHITECTURE))}, 67 "IMAGE_DIRECTORY_ENTRY_BASERELOC": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_BASERELOC))}, 68 "IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT))}, 69 "IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR))}, 70 "IMAGE_DIRECTORY_ENTRY_DEBUG": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_DEBUG))}, 71 "IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT))}, 72 "IMAGE_DIRECTORY_ENTRY_EXCEPTION": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_EXCEPTION))}, 73 "IMAGE_DIRECTORY_ENTRY_EXPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_EXPORT))}, 74 "IMAGE_DIRECTORY_ENTRY_GLOBALPTR": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_GLOBALPTR))}, 75 "IMAGE_DIRECTORY_ENTRY_IAT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_IAT))}, 76 "IMAGE_DIRECTORY_ENTRY_IMPORT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_IMPORT))}, 77 "IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG))}, 78 "IMAGE_DIRECTORY_ENTRY_RESOURCE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_RESOURCE))}, 79 "IMAGE_DIRECTORY_ENTRY_SECURITY": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_SECURITY))}, 80 "IMAGE_DIRECTORY_ENTRY_TLS": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DIRECTORY_ENTRY_TLS))}, 81 "IMAGE_DLLCHARACTERISTICS_APPCONTAINER": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_APPCONTAINER))}, 82 "IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE))}, 83 "IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY))}, 84 "IMAGE_DLLCHARACTERISTICS_GUARD_CF": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_GUARD_CF))}, 85 "IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA))}, 86 "IMAGE_DLLCHARACTERISTICS_NO_BIND": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_NO_BIND))}, 87 "IMAGE_DLLCHARACTERISTICS_NO_ISOLATION": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_NO_ISOLATION))}, 88 "IMAGE_DLLCHARACTERISTICS_NO_SEH": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_NO_SEH))}, 89 "IMAGE_DLLCHARACTERISTICS_NX_COMPAT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_NX_COMPAT))}, 90 "IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE))}, 91 "IMAGE_DLLCHARACTERISTICS_WDM_DRIVER": {"untyped int", constant.MakeInt64(int64(q.IMAGE_DLLCHARACTERISTICS_WDM_DRIVER))}, 92 "IMAGE_FILE_32BIT_MACHINE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_32BIT_MACHINE))}, 93 "IMAGE_FILE_AGGRESIVE_WS_TRIM": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_AGGRESIVE_WS_TRIM))}, 94 "IMAGE_FILE_BYTES_REVERSED_HI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_BYTES_REVERSED_HI))}, 95 "IMAGE_FILE_BYTES_REVERSED_LO": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_BYTES_REVERSED_LO))}, 96 "IMAGE_FILE_DEBUG_STRIPPED": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_DEBUG_STRIPPED))}, 97 "IMAGE_FILE_DLL": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_DLL))}, 98 "IMAGE_FILE_EXECUTABLE_IMAGE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_EXECUTABLE_IMAGE))}, 99 "IMAGE_FILE_LARGE_ADDRESS_AWARE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_LARGE_ADDRESS_AWARE))}, 100 "IMAGE_FILE_LINE_NUMS_STRIPPED": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_LINE_NUMS_STRIPPED))}, 101 "IMAGE_FILE_LOCAL_SYMS_STRIPPED": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_LOCAL_SYMS_STRIPPED))}, 102 "IMAGE_FILE_MACHINE_AM33": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_AM33))}, 103 "IMAGE_FILE_MACHINE_AMD64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_AMD64))}, 104 "IMAGE_FILE_MACHINE_ARM": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_ARM))}, 105 "IMAGE_FILE_MACHINE_ARM64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_ARM64))}, 106 "IMAGE_FILE_MACHINE_ARMNT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_ARMNT))}, 107 "IMAGE_FILE_MACHINE_EBC": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_EBC))}, 108 "IMAGE_FILE_MACHINE_I386": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_I386))}, 109 "IMAGE_FILE_MACHINE_IA64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_IA64))}, 110 "IMAGE_FILE_MACHINE_LOONGARCH32": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_LOONGARCH32))}, 111 "IMAGE_FILE_MACHINE_LOONGARCH64": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_LOONGARCH64))}, 112 "IMAGE_FILE_MACHINE_M32R": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_M32R))}, 113 "IMAGE_FILE_MACHINE_MIPS16": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_MIPS16))}, 114 "IMAGE_FILE_MACHINE_MIPSFPU": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_MIPSFPU))}, 115 "IMAGE_FILE_MACHINE_MIPSFPU16": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_MIPSFPU16))}, 116 "IMAGE_FILE_MACHINE_POWERPC": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_POWERPC))}, 117 "IMAGE_FILE_MACHINE_POWERPCFP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_POWERPCFP))}, 118 "IMAGE_FILE_MACHINE_R4000": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_R4000))}, 119 "IMAGE_FILE_MACHINE_SH3": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH3))}, 120 "IMAGE_FILE_MACHINE_SH3DSP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH3DSP))}, 121 "IMAGE_FILE_MACHINE_SH4": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH4))}, 122 "IMAGE_FILE_MACHINE_SH5": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_SH5))}, 123 "IMAGE_FILE_MACHINE_THUMB": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_THUMB))}, 124 "IMAGE_FILE_MACHINE_UNKNOWN": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_UNKNOWN))}, 125 "IMAGE_FILE_MACHINE_WCEMIPSV2": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_MACHINE_WCEMIPSV2))}, 126 "IMAGE_FILE_NET_RUN_FROM_SWAP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_NET_RUN_FROM_SWAP))}, 127 "IMAGE_FILE_RELOCS_STRIPPED": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_RELOCS_STRIPPED))}, 128 "IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP))}, 129 "IMAGE_FILE_SYSTEM": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_SYSTEM))}, 130 "IMAGE_FILE_UP_SYSTEM_ONLY": {"untyped int", constant.MakeInt64(int64(q.IMAGE_FILE_UP_SYSTEM_ONLY))}, 131 "IMAGE_SCN_CNT_CODE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SCN_CNT_CODE))}, 132 "IMAGE_SCN_CNT_INITIALIZED_DATA": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SCN_CNT_INITIALIZED_DATA))}, 133 "IMAGE_SCN_CNT_UNINITIALIZED_DATA": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SCN_CNT_UNINITIALIZED_DATA))}, 134 "IMAGE_SCN_LNK_COMDAT": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SCN_LNK_COMDAT))}, 135 "IMAGE_SCN_MEM_DISCARDABLE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SCN_MEM_DISCARDABLE))}, 136 "IMAGE_SCN_MEM_EXECUTE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SCN_MEM_EXECUTE))}, 137 "IMAGE_SCN_MEM_READ": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SCN_MEM_READ))}, 138 "IMAGE_SCN_MEM_WRITE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SCN_MEM_WRITE))}, 139 "IMAGE_SUBSYSTEM_EFI_APPLICATION": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_EFI_APPLICATION))}, 140 "IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER))}, 141 "IMAGE_SUBSYSTEM_EFI_ROM": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_EFI_ROM))}, 142 "IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER))}, 143 "IMAGE_SUBSYSTEM_NATIVE": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_NATIVE))}, 144 "IMAGE_SUBSYSTEM_NATIVE_WINDOWS": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_NATIVE_WINDOWS))}, 145 "IMAGE_SUBSYSTEM_OS2_CUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_OS2_CUI))}, 146 "IMAGE_SUBSYSTEM_POSIX_CUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_POSIX_CUI))}, 147 "IMAGE_SUBSYSTEM_UNKNOWN": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_UNKNOWN))}, 148 "IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION))}, 149 "IMAGE_SUBSYSTEM_WINDOWS_CE_GUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_WINDOWS_CE_GUI))}, 150 "IMAGE_SUBSYSTEM_WINDOWS_CUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_WINDOWS_CUI))}, 151 "IMAGE_SUBSYSTEM_WINDOWS_GUI": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_WINDOWS_GUI))}, 152 "IMAGE_SUBSYSTEM_XBOX": {"untyped int", constant.MakeInt64(int64(q.IMAGE_SUBSYSTEM_XBOX))}, 153 }, 154 }) 155 }