Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
reloctype.go73 linesDownload Raw Back to macho
1// Copyright 2017 The Go Authors. All rights reserved.2// Use of this source code is governed by a BSD-style3// license that can be found in the LICENSE file.4 5package macho6 7//go:generate stringer -type=RelocTypeGeneric,RelocTypeX86_64,RelocTypeARM,RelocTypeARM64 -output reloctype_string.go8 9type RelocTypeGeneric int10 11const (12	GENERIC_RELOC_VANILLA        RelocTypeGeneric = 013	GENERIC_RELOC_PAIR           RelocTypeGeneric = 114	GENERIC_RELOC_SECTDIFF       RelocTypeGeneric = 215	GENERIC_RELOC_PB_LA_PTR      RelocTypeGeneric = 316	GENERIC_RELOC_LOCAL_SECTDIFF RelocTypeGeneric = 417	GENERIC_RELOC_TLV            RelocTypeGeneric = 518)19 20func (r RelocTypeGeneric) GoString() string { return "macho." + r.String() }21 22type RelocTypeX86_64 int23 24const (25	X86_64_RELOC_UNSIGNED   RelocTypeX86_64 = 026	X86_64_RELOC_SIGNED     RelocTypeX86_64 = 127	X86_64_RELOC_BRANCH     RelocTypeX86_64 = 228	X86_64_RELOC_GOT_LOAD   RelocTypeX86_64 = 329	X86_64_RELOC_GOT        RelocTypeX86_64 = 430	X86_64_RELOC_SUBTRACTOR RelocTypeX86_64 = 531	X86_64_RELOC_SIGNED_1   RelocTypeX86_64 = 632	X86_64_RELOC_SIGNED_2   RelocTypeX86_64 = 733	X86_64_RELOC_SIGNED_4   RelocTypeX86_64 = 834	X86_64_RELOC_TLV        RelocTypeX86_64 = 935)36 37func (r RelocTypeX86_64) GoString() string { return "macho." + r.String() }38 39type RelocTypeARM int40 41const (42	ARM_RELOC_VANILLA        RelocTypeARM = 043	ARM_RELOC_PAIR           RelocTypeARM = 144	ARM_RELOC_SECTDIFF       RelocTypeARM = 245	ARM_RELOC_LOCAL_SECTDIFF RelocTypeARM = 346	ARM_RELOC_PB_LA_PTR      RelocTypeARM = 447	ARM_RELOC_BR24           RelocTypeARM = 548	ARM_THUMB_RELOC_BR22     RelocTypeARM = 649	ARM_THUMB_32BIT_BRANCH   RelocTypeARM = 750	ARM_RELOC_HALF           RelocTypeARM = 851	ARM_RELOC_HALF_SECTDIFF  RelocTypeARM = 952)53 54func (r RelocTypeARM) GoString() string { return "macho." + r.String() }55 56type RelocTypeARM64 int57 58const (59	ARM64_RELOC_UNSIGNED            RelocTypeARM64 = 060	ARM64_RELOC_SUBTRACTOR          RelocTypeARM64 = 161	ARM64_RELOC_BRANCH26            RelocTypeARM64 = 262	ARM64_RELOC_PAGE21              RelocTypeARM64 = 363	ARM64_RELOC_PAGEOFF12           RelocTypeARM64 = 464	ARM64_RELOC_GOT_LOAD_PAGE21     RelocTypeARM64 = 565	ARM64_RELOC_GOT_LOAD_PAGEOFF12  RelocTypeARM64 = 666	ARM64_RELOC_POINTER_TO_GOT      RelocTypeARM64 = 767	ARM64_RELOC_TLVP_LOAD_PAGE21    RelocTypeARM64 = 868	ARM64_RELOC_TLVP_LOAD_PAGEOFF12 RelocTypeARM64 = 969	ARM64_RELOC_ADDEND              RelocTypeARM64 = 1070)71 72func (r RelocTypeARM64) GoString() string { return "macho." + r.String() }73 
codekingpro/portable-devtools · Team Ai