github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/debug/macho/reloctype.go (about) 1 // Copyright 2017 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package macho 6 7 type RelocTypeGeneric int 8 9 const ( 10 GENERIC_RELOC_VANILLA RelocTypeGeneric = 0 11 GENERIC_RELOC_PAIR RelocTypeGeneric = 1 12 GENERIC_RELOC_SECTDIFF RelocTypeGeneric = 2 13 GENERIC_RELOC_PB_LA_PTR RelocTypeGeneric = 3 14 GENERIC_RELOC_LOCAL_SECTDIFF RelocTypeGeneric = 4 15 GENERIC_RELOC_TLV RelocTypeGeneric = 5 16 ) 17 18 func (r RelocTypeGeneric) GoString() string 19 20 type RelocTypeX86_64 int 21 22 const ( 23 X86_64_RELOC_UNSIGNED RelocTypeX86_64 = 0 24 X86_64_RELOC_SIGNED RelocTypeX86_64 = 1 25 X86_64_RELOC_BRANCH RelocTypeX86_64 = 2 26 X86_64_RELOC_GOT_LOAD RelocTypeX86_64 = 3 27 X86_64_RELOC_GOT RelocTypeX86_64 = 4 28 X86_64_RELOC_SUBTRACTOR RelocTypeX86_64 = 5 29 X86_64_RELOC_SIGNED_1 RelocTypeX86_64 = 6 30 X86_64_RELOC_SIGNED_2 RelocTypeX86_64 = 7 31 X86_64_RELOC_SIGNED_4 RelocTypeX86_64 = 8 32 X86_64_RELOC_TLV RelocTypeX86_64 = 9 33 ) 34 35 func (r RelocTypeX86_64) GoString() string 36 37 type RelocTypeARM int 38 39 const ( 40 ARM_RELOC_VANILLA RelocTypeARM = 0 41 ARM_RELOC_PAIR RelocTypeARM = 1 42 ARM_RELOC_SECTDIFF RelocTypeARM = 2 43 ARM_RELOC_LOCAL_SECTDIFF RelocTypeARM = 3 44 ARM_RELOC_PB_LA_PTR RelocTypeARM = 4 45 ARM_RELOC_BR24 RelocTypeARM = 5 46 ARM_THUMB_RELOC_BR22 RelocTypeARM = 6 47 ARM_THUMB_32BIT_BRANCH RelocTypeARM = 7 48 ARM_RELOC_HALF RelocTypeARM = 8 49 ARM_RELOC_HALF_SECTDIFF RelocTypeARM = 9 50 ) 51 52 func (r RelocTypeARM) GoString() string 53 54 type RelocTypeARM64 int 55 56 const ( 57 ARM64_RELOC_UNSIGNED RelocTypeARM64 = 0 58 ARM64_RELOC_SUBTRACTOR RelocTypeARM64 = 1 59 ARM64_RELOC_BRANCH26 RelocTypeARM64 = 2 60 ARM64_RELOC_PAGE21 RelocTypeARM64 = 3 61 ARM64_RELOC_PAGEOFF12 RelocTypeARM64 = 4 62 ARM64_RELOC_GOT_LOAD_PAGE21 RelocTypeARM64 = 5 63 ARM64_RELOC_GOT_LOAD_PAGEOFF12 RelocTypeARM64 = 6 64 ARM64_RELOC_POINTER_TO_GOT RelocTypeARM64 = 7 65 ARM64_RELOC_TLVP_LOAD_PAGE21 RelocTypeARM64 = 8 66 ARM64_RELOC_TLVP_LOAD_PAGEOFF12 RelocTypeARM64 = 9 67 ARM64_RELOC_ADDEND RelocTypeARM64 = 10 68 ) 69 70 func (r RelocTypeARM64) GoString() string