| 1 | // Code generated by "stringer -type=RelocTypeGeneric,RelocTypeX86_64,RelocTypeARM,RelocTypeARM64 -output reloctype_string.go"; DO NOT EDIT. |
|---|---|
| 2 | |
| 3 | package macho |
| 4 | |
| 5 | import "strconv" |
| 6 | |
| 7 | func _() { |
| 8 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 9 | // Re-run the stringer command to generate them again. |
| 10 | var x [1]struct{} |
| 11 | _ = x[GENERIC_RELOC_VANILLA-0] |
| 12 | _ = x[GENERIC_RELOC_PAIR-1] |
| 13 | _ = x[GENERIC_RELOC_SECTDIFF-2] |
| 14 | _ = x[GENERIC_RELOC_PB_LA_PTR-3] |
| 15 | _ = x[GENERIC_RELOC_LOCAL_SECTDIFF-4] |
| 16 | _ = x[GENERIC_RELOC_TLV-5] |
| 17 | } |
| 18 | |
| 19 | const _RelocTypeGeneric_name = "GENERIC_RELOC_VANILLAGENERIC_RELOC_PAIRGENERIC_RELOC_SECTDIFFGENERIC_RELOC_PB_LA_PTRGENERIC_RELOC_LOCAL_SECTDIFFGENERIC_RELOC_TLV" |
| 20 | |
| 21 | var _RelocTypeGeneric_index = [...]uint8{0, 21, 39, 61, 84, 112, 129} |
| 22 | |
| 23 | func (i RelocTypeGeneric) String() string { |
| 24 | if i < 0 || i >= RelocTypeGeneric(len(_RelocTypeGeneric_index)-1) { |
| 25 | return "RelocTypeGeneric(" + strconv.FormatInt(int64(i), 10) + ")" |
| 26 | } |
| 27 | return _RelocTypeGeneric_name[_RelocTypeGeneric_index[i]:_RelocTypeGeneric_index[i+1]] |
| 28 | } |
| 29 | func _() { |
| 30 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 31 | // Re-run the stringer command to generate them again. |
| 32 | var x [1]struct{} |
| 33 | _ = x[X86_64_RELOC_UNSIGNED-0] |
| 34 | _ = x[X86_64_RELOC_SIGNED-1] |
| 35 | _ = x[X86_64_RELOC_BRANCH-2] |
| 36 | _ = x[X86_64_RELOC_GOT_LOAD-3] |
| 37 | _ = x[X86_64_RELOC_GOT-4] |
| 38 | _ = x[X86_64_RELOC_SUBTRACTOR-5] |
| 39 | _ = x[X86_64_RELOC_SIGNED_1-6] |
| 40 | _ = x[X86_64_RELOC_SIGNED_2-7] |
| 41 | _ = x[X86_64_RELOC_SIGNED_4-8] |
| 42 | _ = x[X86_64_RELOC_TLV-9] |
| 43 | } |
| 44 | |
| 45 | const _RelocTypeX86_64_name = "X86_64_RELOC_UNSIGNEDX86_64_RELOC_SIGNEDX86_64_RELOC_BRANCHX86_64_RELOC_GOT_LOADX86_64_RELOC_GOTX86_64_RELOC_SUBTRACTORX86_64_RELOC_SIGNED_1X86_64_RELOC_SIGNED_2X86_64_RELOC_SIGNED_4X86_64_RELOC_TLV" |
| 46 | |
| 47 | var _RelocTypeX86_64_index = [...]uint8{0, 21, 40, 59, 80, 96, 119, 140, 161, 182, 198} |
| 48 | |
| 49 | func (i RelocTypeX86_64) String() string { |
| 50 | if i < 0 || i >= RelocTypeX86_64(len(_RelocTypeX86_64_index)-1) { |
| 51 | return "RelocTypeX86_64(" + strconv.FormatInt(int64(i), 10) + ")" |
| 52 | } |
| 53 | return _RelocTypeX86_64_name[_RelocTypeX86_64_index[i]:_RelocTypeX86_64_index[i+1]] |
| 54 | } |
| 55 | func _() { |
| 56 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 57 | // Re-run the stringer command to generate them again. |
| 58 | var x [1]struct{} |
| 59 | _ = x[ARM_RELOC_VANILLA-0] |
| 60 | _ = x[ARM_RELOC_PAIR-1] |
| 61 | _ = x[ARM_RELOC_SECTDIFF-2] |
| 62 | _ = x[ARM_RELOC_LOCAL_SECTDIFF-3] |
| 63 | _ = x[ARM_RELOC_PB_LA_PTR-4] |
| 64 | _ = x[ARM_RELOC_BR24-5] |
| 65 | _ = x[ARM_THUMB_RELOC_BR22-6] |
| 66 | _ = x[ARM_THUMB_32BIT_BRANCH-7] |
| 67 | _ = x[ARM_RELOC_HALF-8] |
| 68 | _ = x[ARM_RELOC_HALF_SECTDIFF-9] |
| 69 | } |
| 70 | |
| 71 | const _RelocTypeARM_name = "ARM_RELOC_VANILLAARM_RELOC_PAIRARM_RELOC_SECTDIFFARM_RELOC_LOCAL_SECTDIFFARM_RELOC_PB_LA_PTRARM_RELOC_BR24ARM_THUMB_RELOC_BR22ARM_THUMB_32BIT_BRANCHARM_RELOC_HALFARM_RELOC_HALF_SECTDIFF" |
| 72 | |
| 73 | var _RelocTypeARM_index = [...]uint8{0, 17, 31, 49, 73, 92, 106, 126, 148, 162, 185} |
| 74 | |
| 75 | func (i RelocTypeARM) String() string { |
| 76 | if i < 0 || i >= RelocTypeARM(len(_RelocTypeARM_index)-1) { |
| 77 | return "RelocTypeARM(" + strconv.FormatInt(int64(i), 10) + ")" |
| 78 | } |
| 79 | return _RelocTypeARM_name[_RelocTypeARM_index[i]:_RelocTypeARM_index[i+1]] |
| 80 | } |
| 81 | func _() { |
| 82 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 83 | // Re-run the stringer command to generate them again. |
| 84 | var x [1]struct{} |
| 85 | _ = x[ARM64_RELOC_UNSIGNED-0] |
| 86 | _ = x[ARM64_RELOC_SUBTRACTOR-1] |
| 87 | _ = x[ARM64_RELOC_BRANCH26-2] |
| 88 | _ = x[ARM64_RELOC_PAGE21-3] |
| 89 | _ = x[ARM64_RELOC_PAGEOFF12-4] |
| 90 | _ = x[ARM64_RELOC_GOT_LOAD_PAGE21-5] |
| 91 | _ = x[ARM64_RELOC_GOT_LOAD_PAGEOFF12-6] |
| 92 | _ = x[ARM64_RELOC_POINTER_TO_GOT-7] |
| 93 | _ = x[ARM64_RELOC_TLVP_LOAD_PAGE21-8] |
| 94 | _ = x[ARM64_RELOC_TLVP_LOAD_PAGEOFF12-9] |
| 95 | _ = x[ARM64_RELOC_ADDEND-10] |
| 96 | } |
| 97 | |
| 98 | const _RelocTypeARM64_name = "ARM64_RELOC_UNSIGNEDARM64_RELOC_SUBTRACTORARM64_RELOC_BRANCH26ARM64_RELOC_PAGE21ARM64_RELOC_PAGEOFF12ARM64_RELOC_GOT_LOAD_PAGE21ARM64_RELOC_GOT_LOAD_PAGEOFF12ARM64_RELOC_POINTER_TO_GOTARM64_RELOC_TLVP_LOAD_PAGE21ARM64_RELOC_TLVP_LOAD_PAGEOFF12ARM64_RELOC_ADDEND" |
| 99 | |
| 100 | var _RelocTypeARM64_index = [...]uint16{0, 20, 42, 62, 80, 101, 128, 158, 184, 212, 243, 261} |
| 101 | |
| 102 | func (i RelocTypeARM64) String() string { |
| 103 | if i < 0 || i >= RelocTypeARM64(len(_RelocTypeARM64_index)-1) { |
| 104 | return "RelocTypeARM64(" + strconv.FormatInt(int64(i), 10) + ")" |
| 105 | } |
| 106 | return _RelocTypeARM64_name[_RelocTypeARM64_index[i]:_RelocTypeARM64_index[i+1]] |
| 107 | } |
| 108 |
Members