github.com/goplus/igop@v0.25.0/pkg/debug/macho/go114_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //+build go1.14,!go1.15 4 5 package macho 6 7 import ( 8 q "debug/macho" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/igop" 14 ) 15 16 func init() { 17 igop.RegisterPackage(&igop.Package{ 18 Name: "macho", 19 Path: "debug/macho", 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 "Load": reflect.TypeOf((*q.Load)(nil)).Elem(), 33 }, 34 NamedTypes: map[string]reflect.Type{ 35 "Cpu": reflect.TypeOf((*q.Cpu)(nil)).Elem(), 36 "Dylib": reflect.TypeOf((*q.Dylib)(nil)).Elem(), 37 "DylibCmd": reflect.TypeOf((*q.DylibCmd)(nil)).Elem(), 38 "Dysymtab": reflect.TypeOf((*q.Dysymtab)(nil)).Elem(), 39 "DysymtabCmd": reflect.TypeOf((*q.DysymtabCmd)(nil)).Elem(), 40 "FatArch": reflect.TypeOf((*q.FatArch)(nil)).Elem(), 41 "FatArchHeader": reflect.TypeOf((*q.FatArchHeader)(nil)).Elem(), 42 "FatFile": reflect.TypeOf((*q.FatFile)(nil)).Elem(), 43 "File": reflect.TypeOf((*q.File)(nil)).Elem(), 44 "FileHeader": reflect.TypeOf((*q.FileHeader)(nil)).Elem(), 45 "FormatError": reflect.TypeOf((*q.FormatError)(nil)).Elem(), 46 "LoadBytes": reflect.TypeOf((*q.LoadBytes)(nil)).Elem(), 47 "LoadCmd": reflect.TypeOf((*q.LoadCmd)(nil)).Elem(), 48 "Nlist32": reflect.TypeOf((*q.Nlist32)(nil)).Elem(), 49 "Nlist64": reflect.TypeOf((*q.Nlist64)(nil)).Elem(), 50 "Regs386": reflect.TypeOf((*q.Regs386)(nil)).Elem(), 51 "RegsAMD64": reflect.TypeOf((*q.RegsAMD64)(nil)).Elem(), 52 "Reloc": reflect.TypeOf((*q.Reloc)(nil)).Elem(), 53 "RelocTypeARM": reflect.TypeOf((*q.RelocTypeARM)(nil)).Elem(), 54 "RelocTypeARM64": reflect.TypeOf((*q.RelocTypeARM64)(nil)).Elem(), 55 "RelocTypeGeneric": reflect.TypeOf((*q.RelocTypeGeneric)(nil)).Elem(), 56 "RelocTypeX86_64": reflect.TypeOf((*q.RelocTypeX86_64)(nil)).Elem(), 57 "Rpath": reflect.TypeOf((*q.Rpath)(nil)).Elem(), 58 "RpathCmd": reflect.TypeOf((*q.RpathCmd)(nil)).Elem(), 59 "Section": reflect.TypeOf((*q.Section)(nil)).Elem(), 60 "Section32": reflect.TypeOf((*q.Section32)(nil)).Elem(), 61 "Section64": reflect.TypeOf((*q.Section64)(nil)).Elem(), 62 "SectionHeader": reflect.TypeOf((*q.SectionHeader)(nil)).Elem(), 63 "Segment": reflect.TypeOf((*q.Segment)(nil)).Elem(), 64 "Segment32": reflect.TypeOf((*q.Segment32)(nil)).Elem(), 65 "Segment64": reflect.TypeOf((*q.Segment64)(nil)).Elem(), 66 "SegmentHeader": reflect.TypeOf((*q.SegmentHeader)(nil)).Elem(), 67 "Symbol": reflect.TypeOf((*q.Symbol)(nil)).Elem(), 68 "Symtab": reflect.TypeOf((*q.Symtab)(nil)).Elem(), 69 "SymtabCmd": reflect.TypeOf((*q.SymtabCmd)(nil)).Elem(), 70 "Thread": reflect.TypeOf((*q.Thread)(nil)).Elem(), 71 "Type": reflect.TypeOf((*q.Type)(nil)).Elem(), 72 }, 73 AliasTypes: map[string]reflect.Type{}, 74 Vars: map[string]reflect.Value{ 75 "ErrNotFat": reflect.ValueOf(&q.ErrNotFat), 76 }, 77 Funcs: map[string]reflect.Value{ 78 "NewFatFile": reflect.ValueOf(q.NewFatFile), 79 "NewFile": reflect.ValueOf(q.NewFile), 80 "Open": reflect.ValueOf(q.Open), 81 "OpenFat": reflect.ValueOf(q.OpenFat), 82 }, 83 TypedConsts: map[string]igop.TypedConst{ 84 "ARM64_RELOC_ADDEND": {reflect.TypeOf(q.ARM64_RELOC_ADDEND), constant.MakeInt64(int64(q.ARM64_RELOC_ADDEND))}, 85 "ARM64_RELOC_BRANCH26": {reflect.TypeOf(q.ARM64_RELOC_BRANCH26), constant.MakeInt64(int64(q.ARM64_RELOC_BRANCH26))}, 86 "ARM64_RELOC_GOT_LOAD_PAGE21": {reflect.TypeOf(q.ARM64_RELOC_GOT_LOAD_PAGE21), constant.MakeInt64(int64(q.ARM64_RELOC_GOT_LOAD_PAGE21))}, 87 "ARM64_RELOC_GOT_LOAD_PAGEOFF12": {reflect.TypeOf(q.ARM64_RELOC_GOT_LOAD_PAGEOFF12), constant.MakeInt64(int64(q.ARM64_RELOC_GOT_LOAD_PAGEOFF12))}, 88 "ARM64_RELOC_PAGE21": {reflect.TypeOf(q.ARM64_RELOC_PAGE21), constant.MakeInt64(int64(q.ARM64_RELOC_PAGE21))}, 89 "ARM64_RELOC_PAGEOFF12": {reflect.TypeOf(q.ARM64_RELOC_PAGEOFF12), constant.MakeInt64(int64(q.ARM64_RELOC_PAGEOFF12))}, 90 "ARM64_RELOC_POINTER_TO_GOT": {reflect.TypeOf(q.ARM64_RELOC_POINTER_TO_GOT), constant.MakeInt64(int64(q.ARM64_RELOC_POINTER_TO_GOT))}, 91 "ARM64_RELOC_SUBTRACTOR": {reflect.TypeOf(q.ARM64_RELOC_SUBTRACTOR), constant.MakeInt64(int64(q.ARM64_RELOC_SUBTRACTOR))}, 92 "ARM64_RELOC_TLVP_LOAD_PAGE21": {reflect.TypeOf(q.ARM64_RELOC_TLVP_LOAD_PAGE21), constant.MakeInt64(int64(q.ARM64_RELOC_TLVP_LOAD_PAGE21))}, 93 "ARM64_RELOC_TLVP_LOAD_PAGEOFF12": {reflect.TypeOf(q.ARM64_RELOC_TLVP_LOAD_PAGEOFF12), constant.MakeInt64(int64(q.ARM64_RELOC_TLVP_LOAD_PAGEOFF12))}, 94 "ARM64_RELOC_UNSIGNED": {reflect.TypeOf(q.ARM64_RELOC_UNSIGNED), constant.MakeInt64(int64(q.ARM64_RELOC_UNSIGNED))}, 95 "ARM_RELOC_BR24": {reflect.TypeOf(q.ARM_RELOC_BR24), constant.MakeInt64(int64(q.ARM_RELOC_BR24))}, 96 "ARM_RELOC_HALF": {reflect.TypeOf(q.ARM_RELOC_HALF), constant.MakeInt64(int64(q.ARM_RELOC_HALF))}, 97 "ARM_RELOC_HALF_SECTDIFF": {reflect.TypeOf(q.ARM_RELOC_HALF_SECTDIFF), constant.MakeInt64(int64(q.ARM_RELOC_HALF_SECTDIFF))}, 98 "ARM_RELOC_LOCAL_SECTDIFF": {reflect.TypeOf(q.ARM_RELOC_LOCAL_SECTDIFF), constant.MakeInt64(int64(q.ARM_RELOC_LOCAL_SECTDIFF))}, 99 "ARM_RELOC_PAIR": {reflect.TypeOf(q.ARM_RELOC_PAIR), constant.MakeInt64(int64(q.ARM_RELOC_PAIR))}, 100 "ARM_RELOC_PB_LA_PTR": {reflect.TypeOf(q.ARM_RELOC_PB_LA_PTR), constant.MakeInt64(int64(q.ARM_RELOC_PB_LA_PTR))}, 101 "ARM_RELOC_SECTDIFF": {reflect.TypeOf(q.ARM_RELOC_SECTDIFF), constant.MakeInt64(int64(q.ARM_RELOC_SECTDIFF))}, 102 "ARM_RELOC_VANILLA": {reflect.TypeOf(q.ARM_RELOC_VANILLA), constant.MakeInt64(int64(q.ARM_RELOC_VANILLA))}, 103 "ARM_THUMB_32BIT_BRANCH": {reflect.TypeOf(q.ARM_THUMB_32BIT_BRANCH), constant.MakeInt64(int64(q.ARM_THUMB_32BIT_BRANCH))}, 104 "ARM_THUMB_RELOC_BR22": {reflect.TypeOf(q.ARM_THUMB_RELOC_BR22), constant.MakeInt64(int64(q.ARM_THUMB_RELOC_BR22))}, 105 "Cpu386": {reflect.TypeOf(q.Cpu386), constant.MakeInt64(int64(q.Cpu386))}, 106 "CpuAmd64": {reflect.TypeOf(q.CpuAmd64), constant.MakeInt64(int64(q.CpuAmd64))}, 107 "CpuArm": {reflect.TypeOf(q.CpuArm), constant.MakeInt64(int64(q.CpuArm))}, 108 "CpuArm64": {reflect.TypeOf(q.CpuArm64), constant.MakeInt64(int64(q.CpuArm64))}, 109 "CpuPpc": {reflect.TypeOf(q.CpuPpc), constant.MakeInt64(int64(q.CpuPpc))}, 110 "CpuPpc64": {reflect.TypeOf(q.CpuPpc64), constant.MakeInt64(int64(q.CpuPpc64))}, 111 "FlagAllModsBound": {reflect.TypeOf(q.FlagAllModsBound), constant.MakeInt64(int64(q.FlagAllModsBound))}, 112 "FlagAllowStackExecution": {reflect.TypeOf(q.FlagAllowStackExecution), constant.MakeInt64(int64(q.FlagAllowStackExecution))}, 113 "FlagAppExtensionSafe": {reflect.TypeOf(q.FlagAppExtensionSafe), constant.MakeInt64(int64(q.FlagAppExtensionSafe))}, 114 "FlagBindAtLoad": {reflect.TypeOf(q.FlagBindAtLoad), constant.MakeInt64(int64(q.FlagBindAtLoad))}, 115 "FlagBindsToWeak": {reflect.TypeOf(q.FlagBindsToWeak), constant.MakeInt64(int64(q.FlagBindsToWeak))}, 116 "FlagCanonical": {reflect.TypeOf(q.FlagCanonical), constant.MakeInt64(int64(q.FlagCanonical))}, 117 "FlagDeadStrippableDylib": {reflect.TypeOf(q.FlagDeadStrippableDylib), constant.MakeInt64(int64(q.FlagDeadStrippableDylib))}, 118 "FlagDyldLink": {reflect.TypeOf(q.FlagDyldLink), constant.MakeInt64(int64(q.FlagDyldLink))}, 119 "FlagForceFlat": {reflect.TypeOf(q.FlagForceFlat), constant.MakeInt64(int64(q.FlagForceFlat))}, 120 "FlagHasTLVDescriptors": {reflect.TypeOf(q.FlagHasTLVDescriptors), constant.MakeInt64(int64(q.FlagHasTLVDescriptors))}, 121 "FlagIncrLink": {reflect.TypeOf(q.FlagIncrLink), constant.MakeInt64(int64(q.FlagIncrLink))}, 122 "FlagLazyInit": {reflect.TypeOf(q.FlagLazyInit), constant.MakeInt64(int64(q.FlagLazyInit))}, 123 "FlagNoFixPrebinding": {reflect.TypeOf(q.FlagNoFixPrebinding), constant.MakeInt64(int64(q.FlagNoFixPrebinding))}, 124 "FlagNoHeapExecution": {reflect.TypeOf(q.FlagNoHeapExecution), constant.MakeInt64(int64(q.FlagNoHeapExecution))}, 125 "FlagNoMultiDefs": {reflect.TypeOf(q.FlagNoMultiDefs), constant.MakeInt64(int64(q.FlagNoMultiDefs))}, 126 "FlagNoReexportedDylibs": {reflect.TypeOf(q.FlagNoReexportedDylibs), constant.MakeInt64(int64(q.FlagNoReexportedDylibs))}, 127 "FlagNoUndefs": {reflect.TypeOf(q.FlagNoUndefs), constant.MakeInt64(int64(q.FlagNoUndefs))}, 128 "FlagPIE": {reflect.TypeOf(q.FlagPIE), constant.MakeInt64(int64(q.FlagPIE))}, 129 "FlagPrebindable": {reflect.TypeOf(q.FlagPrebindable), constant.MakeInt64(int64(q.FlagPrebindable))}, 130 "FlagPrebound": {reflect.TypeOf(q.FlagPrebound), constant.MakeInt64(int64(q.FlagPrebound))}, 131 "FlagRootSafe": {reflect.TypeOf(q.FlagRootSafe), constant.MakeInt64(int64(q.FlagRootSafe))}, 132 "FlagSetuidSafe": {reflect.TypeOf(q.FlagSetuidSafe), constant.MakeInt64(int64(q.FlagSetuidSafe))}, 133 "FlagSplitSegs": {reflect.TypeOf(q.FlagSplitSegs), constant.MakeInt64(int64(q.FlagSplitSegs))}, 134 "FlagSubsectionsViaSymbols": {reflect.TypeOf(q.FlagSubsectionsViaSymbols), constant.MakeInt64(int64(q.FlagSubsectionsViaSymbols))}, 135 "FlagTwoLevel": {reflect.TypeOf(q.FlagTwoLevel), constant.MakeInt64(int64(q.FlagTwoLevel))}, 136 "FlagWeakDefines": {reflect.TypeOf(q.FlagWeakDefines), constant.MakeInt64(int64(q.FlagWeakDefines))}, 137 "GENERIC_RELOC_LOCAL_SECTDIFF": {reflect.TypeOf(q.GENERIC_RELOC_LOCAL_SECTDIFF), constant.MakeInt64(int64(q.GENERIC_RELOC_LOCAL_SECTDIFF))}, 138 "GENERIC_RELOC_PAIR": {reflect.TypeOf(q.GENERIC_RELOC_PAIR), constant.MakeInt64(int64(q.GENERIC_RELOC_PAIR))}, 139 "GENERIC_RELOC_PB_LA_PTR": {reflect.TypeOf(q.GENERIC_RELOC_PB_LA_PTR), constant.MakeInt64(int64(q.GENERIC_RELOC_PB_LA_PTR))}, 140 "GENERIC_RELOC_SECTDIFF": {reflect.TypeOf(q.GENERIC_RELOC_SECTDIFF), constant.MakeInt64(int64(q.GENERIC_RELOC_SECTDIFF))}, 141 "GENERIC_RELOC_TLV": {reflect.TypeOf(q.GENERIC_RELOC_TLV), constant.MakeInt64(int64(q.GENERIC_RELOC_TLV))}, 142 "GENERIC_RELOC_VANILLA": {reflect.TypeOf(q.GENERIC_RELOC_VANILLA), constant.MakeInt64(int64(q.GENERIC_RELOC_VANILLA))}, 143 "LoadCmdDylib": {reflect.TypeOf(q.LoadCmdDylib), constant.MakeInt64(int64(q.LoadCmdDylib))}, 144 "LoadCmdDylinker": {reflect.TypeOf(q.LoadCmdDylinker), constant.MakeInt64(int64(q.LoadCmdDylinker))}, 145 "LoadCmdDysymtab": {reflect.TypeOf(q.LoadCmdDysymtab), constant.MakeInt64(int64(q.LoadCmdDysymtab))}, 146 "LoadCmdRpath": {reflect.TypeOf(q.LoadCmdRpath), constant.MakeInt64(int64(q.LoadCmdRpath))}, 147 "LoadCmdSegment": {reflect.TypeOf(q.LoadCmdSegment), constant.MakeInt64(int64(q.LoadCmdSegment))}, 148 "LoadCmdSegment64": {reflect.TypeOf(q.LoadCmdSegment64), constant.MakeInt64(int64(q.LoadCmdSegment64))}, 149 "LoadCmdSymtab": {reflect.TypeOf(q.LoadCmdSymtab), constant.MakeInt64(int64(q.LoadCmdSymtab))}, 150 "LoadCmdThread": {reflect.TypeOf(q.LoadCmdThread), constant.MakeInt64(int64(q.LoadCmdThread))}, 151 "LoadCmdUnixThread": {reflect.TypeOf(q.LoadCmdUnixThread), constant.MakeInt64(int64(q.LoadCmdUnixThread))}, 152 "Magic32": {reflect.TypeOf(q.Magic32), constant.MakeInt64(int64(q.Magic32))}, 153 "Magic64": {reflect.TypeOf(q.Magic64), constant.MakeInt64(int64(q.Magic64))}, 154 "MagicFat": {reflect.TypeOf(q.MagicFat), constant.MakeInt64(int64(q.MagicFat))}, 155 "TypeBundle": {reflect.TypeOf(q.TypeBundle), constant.MakeInt64(int64(q.TypeBundle))}, 156 "TypeDylib": {reflect.TypeOf(q.TypeDylib), constant.MakeInt64(int64(q.TypeDylib))}, 157 "TypeExec": {reflect.TypeOf(q.TypeExec), constant.MakeInt64(int64(q.TypeExec))}, 158 "TypeObj": {reflect.TypeOf(q.TypeObj), constant.MakeInt64(int64(q.TypeObj))}, 159 "X86_64_RELOC_BRANCH": {reflect.TypeOf(q.X86_64_RELOC_BRANCH), constant.MakeInt64(int64(q.X86_64_RELOC_BRANCH))}, 160 "X86_64_RELOC_GOT": {reflect.TypeOf(q.X86_64_RELOC_GOT), constant.MakeInt64(int64(q.X86_64_RELOC_GOT))}, 161 "X86_64_RELOC_GOT_LOAD": {reflect.TypeOf(q.X86_64_RELOC_GOT_LOAD), constant.MakeInt64(int64(q.X86_64_RELOC_GOT_LOAD))}, 162 "X86_64_RELOC_SIGNED": {reflect.TypeOf(q.X86_64_RELOC_SIGNED), constant.MakeInt64(int64(q.X86_64_RELOC_SIGNED))}, 163 "X86_64_RELOC_SIGNED_1": {reflect.TypeOf(q.X86_64_RELOC_SIGNED_1), constant.MakeInt64(int64(q.X86_64_RELOC_SIGNED_1))}, 164 "X86_64_RELOC_SIGNED_2": {reflect.TypeOf(q.X86_64_RELOC_SIGNED_2), constant.MakeInt64(int64(q.X86_64_RELOC_SIGNED_2))}, 165 "X86_64_RELOC_SIGNED_4": {reflect.TypeOf(q.X86_64_RELOC_SIGNED_4), constant.MakeInt64(int64(q.X86_64_RELOC_SIGNED_4))}, 166 "X86_64_RELOC_SUBTRACTOR": {reflect.TypeOf(q.X86_64_RELOC_SUBTRACTOR), constant.MakeInt64(int64(q.X86_64_RELOC_SUBTRACTOR))}, 167 "X86_64_RELOC_TLV": {reflect.TypeOf(q.X86_64_RELOC_TLV), constant.MakeInt64(int64(q.X86_64_RELOC_TLV))}, 168 "X86_64_RELOC_UNSIGNED": {reflect.TypeOf(q.X86_64_RELOC_UNSIGNED), constant.MakeInt64(int64(q.X86_64_RELOC_UNSIGNED))}, 169 }, 170 UntypedConsts: map[string]igop.UntypedConst{}, 171 }) 172 }